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: GOARM missing from the go env command #17191
Comments
GO386 is missing too.
|
There are several other environment variables documented here: https://golang.org/cmd/go/#hdr-Environment_variables We should include all of them, not just GOARM and GO386 |
/cc @rsc Should we show the CGO-related environment variables when CGO_ENABLED=0? Also, we're currently showing an environment variable called |
|
@ianlancetaylor AFAICT the go command does not actually read the |
Yes, you're right. (But |
A few more questions that came up:
|
I think that if we add support for We should treat My opinion is that we should always print the same set of environment variables from |
CL https://golang.org/cl/31330 mentions this issue. |
@ianlancetaylor So I'm left with the only option being to show the actual value of the I think I also have to therefore not show the defaults for the other Thoughts? |
As far as I know, Given that it seems to me that if |
By the way, if any of this seems too crazy we can probably change it. |
See https://github.com/golang/go/blob/master/src/cmd/go/build.go#L3208 If |
When I say |
Is there a reason GOARM is missing from the go env command?
Somewhat related to #9737 which would fix it for me.
What version of Go are you using (
go version
)?go version go1.7.1 darwin/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/lars/Code/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sp/5w54k4g94nnc48r5w6yxgyxw0000gn/T/go-build783462244=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
Run the following command in a shell:
What did you expect to see?
7\n
What did you see instead?
\n
The text was updated successfully, but these errors were encountered: