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

This comment has been minimized.

Copy link
Member

@ALTree 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

This comment has been minimized.

Copy link
Author

@renyang19910211 renyang19910211 commented Nov 13, 2019

Yes,it worked,Thank you very much!

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