Bzlmod is not fetching 'patches' using netrc credentials #18864
Labels
area-Bzlmod
Bzlmod-specific PRs, issues, and feature requests
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: bug
untriaged
Description of the bug:
Patches from a bzlmod registry are not being fetched with netrc credentials.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add netrc entry for the bazel registry and verify GETs for patch files do not include Authorization header.
Which operating system are you running Bazel on?
Linux
What is the output of
bazel info release
?release 6.2.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No
Have you found anything relevant by searching the web?
https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/bazel/bzlmod/IndexRegistry.java#L251
Credentials / netrc info don't seem to be passed along with the patches.
Any other information, logs, or outputs that you want to share?
Some packets from internal server set as a registry (via --registry):
Patch file GET (no Authorization header):
Non-patch file GET (Authorization header):
The text was updated successfully, but these errors were encountered: