-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] mingw-w64-x86_64-go bad GOPATH default #8437
Comments
I can't reproduce. Do you have a "D:" drive by any chance? maybe that triggers it. |
Yes, though @naveen521kk comments indicate this has been a long-running issue. |
I can still reproduce this when not loading any profiles (aka from not bash) PS C:\Users\cddeg> C:\msys64\ucrt64\bin\go.exe install -v golang.org/x/tools/cmd/goimports@latest
go: cannot find GOROOT directory: D:\a\msys64\ucrt64\lib\go |
Perhaps the three issues should be consolidated? It seems to stem primarily from the fact that the GOROOT's default value is hardcoded at buildtime rather than run-time, perhaps something similar to pkg-config's relocation could be done |
I see someone else mentioned 421 and 7844 already, should two of them be closed as a duplicate similar to #665? |
work around:
export GOROOT=/mingw64/lib/go
The text was updated successfully, but these errors were encountered: