-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: GOROOT not being recognized #11227
Comments
You don't need to set GOROOT. Instead, unpack the source code to Sorry for the elided paths, phone On Tue, 16 Jun 2015 10:04 jakirkham notifications@github.com wrote:
|
What does |
|
@davecheney, the
|
@jakirkham unless you absolutely need to build tip, I recommend sticking with the source tarball from the website to try to limit the problems you have in your environment. |
Maybe this might help, how does |
I did indeed pick a tar ball ( http://storage.googleapis.com/golang/go1.4.2.src.tar.gz ). |
@jakirkham this might be a more appropriate thread for the mailing list, the issue tracker is discouraged as a general support conduit. |
Ok, sorry, where should I go then? |
https://groups.google.com/forum/#!forum/golang-nuts To be clear, you're welcome to raise bugs on the issue tracker, but side conversations about how GOROOT is set are best addressed in the mailing list. |
Please try two things: First:
Second:
If you're using a distributed tar file, I don't understand how it is getting to the "right" GOROOT but not quite. The only thing I can think of is that you do have a GOROOT set, but it has some kind of invisible characters in it. Running the explicit GOROOT=... go run form overrides the not-quite-right GOROOT. |
So, I think I have fixed what was causing this problem, but it has resulted in a new problem. As a result, I will open it in a new issue. Thanks for everyone's help. |
If I run the following
go run hello.go
( https://golang.org/doc/install ), I get the following error.This directory does exist and
go
is withinbin
below this directory. If I explicitly setGOROOT
to that directory before running like soGOROOT=/home/vagrant/miniconda/envs/goenv go run hello.go
, I get the expected result.The only line that I could expect would cause this issue is here (
go/src/cmd/go/main.go
Line 153 in 239ec73
stat
on the directory like sostat /home/vagrant/miniconda/envs/goenv
, I get this result.I have reproduced this error on Mac and Linux. Any thoughts or suggestions as to why this is happening? For the record, this my first day with
go
so assume I know nothing. :)The text was updated successfully, but these errors were encountered: