Skip to content
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: document that GOGCCFLAGS cannot be changed #30123

Closed
ainar-g opened this issue Feb 7, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@ainar-g
Copy link
Contributor

commented Feb 7, 2019

go env shows that there exists an environment variable called GOGCCFLAGS. But in fact, users cannot change it, unlike all other variables. The variable is there only for informational purposes. I think that this is worth documenting in go help environment so that users don't get surprised.

@bcmills bcmills added this to the Go1.13 milestone Feb 28, 2019

@bcmills bcmills changed the title doc: document that GOGCCFLAGS cannot be changed cmd/go: document that GOGCCFLAGS cannot be changed Feb 28, 2019

@bcmills

This comment has been minimized.

Copy link
Member

commented Mar 7, 2019

Looks like it belongs in this section:

Additional information available from 'go env' but not read from the environment:
GOEXE
The executable file name suffix (".exe" on Windows, "" on other systems).
GOHOSTARCH
The architecture (GOARCH) of the Go toolchain binaries.
GOHOSTOS
The operating system (GOOS) of the Go toolchain binaries.
GOMOD
The absolute path to the go.mod of the main module,
or the empty string if not using modules.
GOTOOLDIR
The directory where the go tools (compile, cover, doc, etc...) are installed.

@gopherbot

This comment has been minimized.

Copy link

commented Mar 12, 2019

Change https://golang.org/cl/166577 mentions this issue: cmd/go: document GOGCCFLAGS

@gopherbot gopherbot closed this in fda1dc2 Mar 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.