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

go: unknown environment setting GO111MODULE=false #35556

Closed
renyang19910211 opened this issue Nov 13, 2019 · 2 comments
Closed

go: unknown environment setting GO111MODULE=false #35556

renyang19910211 opened this issue Nov 13, 2019 · 2 comments

Comments

@renyang19910211
Copy link

renyang19910211 commented Nov 13, 2019

What version of Go are you using (go version)?

$ go version 1.13.4 

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

win10

go env Output
$ go env

What did you do?

go env -w GO111MODULE=false,I use the wrong value for GO111MODULE,then all go cmd is not work with the error “go: unknown environment setting GO111MODULE=false”。I also can't reset the GO111MODULE to the right value.how can i fix it?

What did you expect to see?

What did you see instead?

@ALTree
Copy link
Member

ALTree commented Nov 13, 2019

Thanks for the report.

You hit #34880, which was recently fixed (fix will be included in go1.14).

In the meantime, you could try this:

First, manually set GO111MODULE to a correct value from the terminal, for example in powershell; that should temporarily fix go env, then you can try go env -w again, so run:

$env:GO111MODULE=off

and then:

go env -w GO111MODULE=off

Does that work?

@renyang19910211
Copy link
Author

Yes,it worked,Thank you very much!

@golang golang locked and limited conversation to collaborators Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants