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
x/review/git-codereview: cannot install with go 1.6 #14816
Comments
This suggests that something is wrong with your Go 1.6 installation. For
example, are you setting $GOROOT? Are the go tool and $GOROOT setting
incompatible?
|
Can you build any Go program at all? |
This was indeed the problem. $GOPATH was set to $HOME/go, but $GOROOT was not set. There was also an old installation in /usr/local/go instead of in $HOME/go. Interestingly, $HOME/go/bin was in the path ahead of /usr/local/go/bin. I'm not sure why it was picking up the old installation. I was having problems building some things, but not others. I should have checked the environment variables, but this setup worked perfectly fine in 1.5; also the nature of the error message lead me to believe that GOROOT was set. Thanks! |
I've get into this same problem after upgrade to 1.6.2, I can't build any program:
I'm exporting go env variables in the bash profile:
I had an old installation on |
Please answer these questions before submitting your issue. Thanks!
go version
)?go 1.6
go env
)?Run:
go get -u golang.org/x/review/git-codereview
Nothing. That is, I expected the package to install without error.
Installing with go 1.5.3 works fine on the same machine.
The text was updated successfully, but these errors were encountered: