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
Closed

cmd/go: document that GOGCCFLAGS cannot be changed #30123

ainar-g opened this issue Feb 7, 2019 · 2 comments
Labels
Documentation FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@ainar-g
Copy link
Contributor

ainar-g 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 the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 28, 2019
@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
Copy link
Contributor

bcmills 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.

@bcmills bcmills added help wanted NeedsFix The path to resolution is known, but the work has not been done. labels Mar 7, 2019
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 7, 2019
@gopherbot
Copy link
Contributor

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

@golang golang locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants