Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation of zoekt-indexer fails #120

Open
jkjha opened this issue Oct 6, 2020 · 4 comments
Open

installation of zoekt-indexer fails #120

jkjha opened this issue Oct 6, 2020 · 4 comments

Comments

@jkjha
Copy link

jkjha commented Oct 6, 2020

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.

@jkjha
Copy link
Author

jkjha commented Oct 6, 2020

I have tried on Mac and Ubuntu vms. But it fails with same error.

@keegancsmith
Copy link
Contributor

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.

@jkjha
Copy link
Author

jkjha commented Oct 7, 2020

I am using go version go1.15.2 darwin/amd64

@robinp-tw
Copy link

So for me, GO111MODULE=on go get ..... installed into ~/go/bin. Note that it is get, not install. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants