Open jkjha opened 3 years ago
I have tried on Mac and Ubuntu vms. But it fails with same error.
Which version of go are you using? Older versions of go require GO111MODULE=on
environment variable. Try GO111MODULE=on go install github.com/google/zoekt/cmd/zoekt-index
. If you want to stick to using the GOPATH, try doing go get ./...
first to fetch deps.
I am using go version go1.15.2 darwin/amd64
So for me, GO111MODULE=on go get .....
installed into ~/go/bin
. Note that it is get
, not install
. :man_shrugging:
I am following this documentation for setting up zoekt. https://github.com/google/zoekt
But when I run this command:
go install github.com/google/zoekt/cmd/zoekt-index
it fails with error:
../../go/src/github.com/google/zoekt/cmd/zoekt-index/main.go:30:2: cannot find package "go.uber.org/automaxprocs/maxprocs" in any of: /usr/local/go/src/go.uber.org/automaxprocs/maxprocs (from $GOROOT) /home/username/go/src/go.uber.org/automaxprocs/maxprocs (from $GOPATH)
Can anyone please help if I am missing anything or its a regression.