Go get fails on go 1.12

I’m trying to install codesearch on my machine, but go get returns no matching versions for query "latest".

go version go1.12.4 linux/amd64

go env output:

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/works/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/works/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build018416735=/tmp/go-build -gno-record-gcc-switches"

What’s wrong with that…?

This is really strange. It should either be empty or pointing to the current go.mod file

Have you set this variable by hand?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.