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
go_download_sdk uses repository_ctx.download_and_extract to fetch these archives. I think that method would be the right place to support .netrc, so please consider opening an issue at bazelbuild/bazel for this.
It may be possible to read .netrc, parse it in Starlark, then pass credentials to download_and_extract through the auth parameter. I'd rather not add that complexity to go_download_sdk though. Maybe you can implement a custom repository rule that does this, then call go_wrap_sdk to configure it?
What version of rules_go are you using?
v0.22.6
What version of gazelle are you using?
Not using gazelle
What version of Bazel are you using?
Build label: 2.0.1
Does this issue reproduce with the latest releases of all the above?
If I want to use
go_download_sdk
with a url that requires a.netrc
, I get401 Unauthorized
.What operating system and processor architecture are you using?
ubuntu16.04 x86
Any other potentially useful information about your toolchain?
No
What did you do?
What did you expect to see?
That the
go_download_sdk
passes.What did you see instead?
401 Unauthorized
The text was updated successfully, but these errors were encountered: