-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support Windows _netrc instead of .netrc #14
Comments
@veggiemonk thanks for reporting! It would be much appreciated if you would like to prepare a CL :) Otherwise I'll get to it whenever I have a chance. |
Glad I found this! Spent quite some time trying to get this to work -- and this resolved it for me. |
You can set the NETRC environment variable to $HOME/.netrc for go to workaround this. |
Hi again, I believe #20 adresses this issue |
- Fixes Support Windows _netrc instead of .netrc #14 - Switch from path to path/filepath for multi-platform line separators - Fix the AddConfigs test for Windows by removing the new lines in the test data. Different new line characters in Windows were causing tests always to fail
The issue now must have been solved with the version 0.4.0 @yihanzhen https://cloud.google.com/artifact-registry/docs/go/authentication is still referring to 0.1.0. Generally, this documentation assumes Unix-like operating systems with all the command examples. Could you internally raise this so it is updated? |
Hi,
I found a bug for Windows (I don't use it by choice).
The error message is:
As stated in the reference for modules https://go.dev/ref/mod#private-module-proxy-auth
I solved it by just copying the file and changing the name to
_netrc
It should probably be stressed out in the Artifact Registry documentation: https://cloud.google.com/artifact-registry/docs/go/store-go
Let's really hope this helps someone save hours of debugging (like I just did) 😆
The text was updated successfully, but these errors were encountered: