Lazygit: ubuntu: cannot install with `go get`

Created on 13 Aug 2018  路  4Comments  路  Source: jesseduffield/lazygit

Describe the bug

I try to install via go get github.com/jesseduffield/lazygit

but get

  package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

To Reproduce

s.a.

Expected behavior

I would expect lazygit to be installed

Desktop (please complete the following information):

  • OS: Ubuntu 17.04
  • Lazygit Version latest

    • go: 1.7.3

Most helpful comment

Never used linuxbrew, but my guess is that you need to point your GOROOT towards wherever your custom Go is installed. Then run go env to double-check.

All 4 comments

Your version of Golang is too old. Follow the official instructions on how to get a newer version.

I now have installed go 1.10.3 via linuxbrew and activated it via update-alternatives ... but still have the same issue:

 :~$ go version
 go version go1.10.3 linux/amd64
 :~$ 
 :~$ go get github.com/jesseduffield/lazygit
 package math/bits: unrecognized import path "math/bits" (import path does not begin with hostname)

ideas?

Never used linuxbrew, but my guess is that you need to point your GOROOT towards wherever your custom Go is installed. Then run go env to double-check.

yep, go env still showed the old version, thanks!

Was this page helpful?
0 / 5 - 0 ratings