module retrieved from URL without extension fails #22421
Labels
help wanted
Someone outside the Bazel team could own this
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
type: feature request
Description of the bug:
If a module is retrieved from a URL that does not have an archive extension, then the build fails. The URL can be set in a custom module definition, or with archive_override, or via a rewrite in downloader.cfg, all these cases fail.
For example, retrieving from a corporate cache:
Results in output:
download_and_extract takes an expected suffix, but ideally any fix would support URL rewrites to URLs without extensions in downloader.cfg. When such URLs are retrieved from artifactory, they come back with these headers:
Which category does this issue belong to?
External Dependency
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Put an archive on a server with no extension, supply as archive_override (see above)
Which operating system are you running Bazel on?
Windows
What is the output of
bazel info release
?release 7.2.0rc1
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 HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: