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: go doesn't respect $GOPATH in windows system environment variable #23387

Closed
eromoe opened this issue Jan 9, 2018 · 5 comments
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@eromoe
Copy link

eromoe commented Jan 9, 2018

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

go version go1.9.2 windows/amd64

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

win7 x64

doesn't respect $GOPATH in windows.

still install at user home.

image

image

PS: Work with user environment variable

@eromoe eromoe changed the title golang doesn't respect $GOPATH in windows. golang doesn't respect $GOPATH in windows system environment variable. Jan 9, 2018
@ghost
Copy link

ghost commented Jan 9, 2018

What is the output of go env?

@as
Copy link
Contributor

as commented Jan 9, 2018

Is that a literal newline in the environment variable's name?

@as
Copy link
Contributor

as commented Jan 9, 2018

Can you provide relevant output from running:

reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /s

@ALTree ALTree changed the title golang doesn't respect $GOPATH in windows system environment variable. cmd/go: go doesn't respect $GOPATH in windows system environment variable Jan 9, 2018
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 9, 2018
@rsc
Copy link
Contributor

rsc commented Jan 9, 2018

Pretty sure @as is right: set | grep GOPATH should show:

GOPATH=D:\GOPATH\

NOT

GOPATH
=D:\GOPATH\

@eromoe
Copy link
Author

eromoe commented Jan 10, 2018

I don't know why looks like this , it does show correct in windows env editor as the pic I post in question:

image


Today I find it maybe my home Windows problem, works on my work machine .

@eromoe eromoe closed this as completed Jan 10, 2018
@golang golang locked and limited conversation to collaborators Jan 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants