You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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%".
The text was updated successfully, but these errors were encountered:
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
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.
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%".
The text was updated successfully, but these errors were encountered: