-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/dist: "go tool dist: unknown $GOOS linux" #14024
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
Comments
This is likely to be a mistake in your Go installation, caused by step 3. I recommend removing what's left of your Go installation and replacing it with a fresh one. As of Go 1.5 no additional steps are required to prepare for cross compilation. |
Removed my go installation completely and installed fresh. Ran
Same thing if I |
That error message is wrong and i think it has been fixed in Go 1.6.
|
Hopefully... Till then I'll develop on my mac. That seems to work fine when I change the target OS |
It's fixed by https://golang.org/cl/15221, and it basically just removed
the error, so you can also apply that to Go 1.5 source code if you want.
The patch should be pretty safe.
|
That's brilliant. The commit message also mentions the likelihood of an incorrect $GOROOT so I'll check that out as well, although it was installed in the default place so I'm pretty sure it's not even set. I'll set it and see if that makes a difference. |
Please do not set $GOROOT. This will not help in resolving this issue. On Thu, Jan 21, 2016 at 12:51 PM, Dan Hardman notifications@github.com
|
My |
I'm trying to set my target GOOS and GOARCH to
linux/arm
whilst developing using atom go that I can build on save and see appropriate error messages given to me through the atom package: go-plus. However, When I do this on Windows, I get error messages saying go tools cannot be found.I was told running make.bat would solve this issue, however when it gets to running
.\cmd\dist\
I get this errorgo tool dist: unknown $GOOS linux
.Obviously "linux" is included in
okgoos
so I'm not sure why https://github.com/golang/go/blob/master/src/cmd/dist/build.go#L115 is failing.The text was updated successfully, but these errors were encountered: