-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/vgo: netrc failing to load on Windows, possibly in wrong place #24606
Comments
On Windows, the equivalent of $HOME is $USERPROFILE. I do also have a HOME env var defined, pointing at the same location as USERPROFILE. I've created a
I've verified using Windows Subsystem for Linux that |
I just tried renaming the To summarize, for this to work:
|
You can't directly use the $HOME env var, go through user PKG. As indicated above, windows expects the name to be "_netrc". At least this is how git code review and windows git work. |
Yes, this line in vgo internal web2/web.go is wrong. Use how code review does it: |
Change https://golang.org/cl/103866 mentions this issue: |
On Windows $HOME/.netrc is the wrong path; at the least there's no $HOME.
We should find out what the canonical path is on Windows and use that.
See #23955 (comment) by @doxxx.
The text was updated successfully, but these errors were encountered: