-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: should not depend on the existence of the default $GOROOT #19187
Comments
Did you manually set |
I didn't. The problem occurs without explicitly set GOROOT environment variable. And if I set it to |
Please post the output of |
With unexported GOROOT:
With GOROOT set to
Nothing, if GOROOT is not set. |
I'm not sure there's anything do to here. The
and:
If you don't want |
Closing as dup of #17833. |
What version of Go are you using (
go version
)?1.8
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
I downloaded
go1.8.linux-amd64.tar.gz
and extracted it into the home directory and didexport PATH="/home/user/go/bin:$PATH"
. Then I tried to rungo version
.What did you expect to see?
Go version number.
What did you see instead?
go: cannot find GOROOT directory: /usr/local/go
None of the commands
build
,fmt
,generate
,get
,install
,list
,run
,test
,vet
etc. do work. They all print the same error.When I create an empty
/usr/local/go
, they all by some magic start to work.The text was updated successfully, but these errors were encountered: