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: get does not expand env variables on Windows #11962

Closed
chairborne opened this issue Jul 31, 2015 · 1 comment
Closed

cmd/go: get does not expand env variables on Windows #11962

chairborne opened this issue Jul 31, 2015 · 1 comment

Comments

@chairborne
Copy link

Title says it all. I have a directory with my code in "%USERPROFILE%". Let me call it Dev. I made a environment variable called "%DEV%" to make it easier to access the dir. %GOPATH% is "%DEV%\Go". When I use "go get" it does not expand "%DEV%" to "%USERPROFILE%\Dev" or "C:\Users\user\Dev" but downloads sources to "%USERPROFILE%%DEV%".

@mikioh mikioh changed the title go get does not expand env variables on Windows cmd/go: get does not expand env variables on Windows Jul 31, 2015
@alexbrainman
Copy link
Member

It does not say anywhere in go command documentation that it will expand environment variables. Does it?

Why should "go get" command expand environment variables? Windows shell does the expansion. If you want to use that (you can create small batch file that prepares all your go environment variables), that is fine. But I don't see why go should meddle in here.

I think it is working as intended.

Alex

@golang golang locked and limited conversation to collaborators Aug 5, 2016
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

4 participants