-
Notifications
You must be signed in to change notification settings - Fork 517
In Windows images, env var 'GOPATH' points to empty folder. #288
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
Comments
I believe you're thinking of |
See https://github.com/golang/go/wiki/GOPATH for additional useful details on this. |
@tianon, right I mixed
I think the root issue comes from the Go Team (golang/go#23848) when they decided to install the source for Go projects and their binaries (
As an example, Microsoft installs .NET Core (OSS) using the following locations: |
So, I get that this is confusing, but what I'm not getting is what harm this causes? The |
Going to close since this seems resolved |
As a bit of a necro-update, I've filed #377 to change this in Go 1.17+ (now that it's changed in Go's installers and we have an upstream version to toggle on for a minor backwards compat break). |
It seems like all Windows images has the same issue. The environment variable
GOPATH
points to the pathC:\gopath
, but there is nothing inside this directory.golang/1.12/windows/windowsservercore-1803/Dockerfile
Lines 40 to 41 in ce2392f
The reason because Golang is installed into the path
C:\go
.golang/1.12/windows/windowsservercore-1803/Dockerfile
Lines 51 to 71 in ce2392f
Shouldn't
GOPATH
points toC:\go
?The text was updated successfully, but these errors were encountered: