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: documentation doesn't mention GOENV=off #46840

Open
mdempsky opened this issue Jun 20, 2021 · 1 comment
Open

cmd/go: documentation doesn't mention GOENV=off #46840

mdempsky opened this issue Jun 20, 2021 · 1 comment

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented Jun 20, 2021

The documentation at https://golang.org/cmd/go/#hdr-Environment_variables doesn't mention that GOENV=off is a special case for disabling the use of a Go environment configuration file. It probably should, and maybe to mention GOENV=./off is a workaround if they actually want to use a file named "off" in the current directory.

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 22, 2021

Perhaps also worth noting that

GOENV=off go env GOENV

just prints a newline. It does not print off. I can't tell whether this is a bug or not.

@jayconrod jayconrod added this to the Go1.18 milestone Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants