Cannot install Go SDK

When I run go get
I get an invalid path error:

package invalid import path “

(echo $GOPATH => /home/naftali/go
ls /home/naftali/go => bin pkg src)

I’ve also tried: go get

But get this:

go/src/ invalid operation: uint64(b[i] & 127) << (i * 7) (shift count type int, must be unsigned integer)

(I’m running Ubuntu 18.04.2 LTS)

Hey @naftali,

Can you share which version of Go you are using? It looks like Go is trying to use the old GOPATH method of installation as opposed to Go Modules, which typically happens when using older versions of Go.

Cheers, Brett

1 Like