-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Downloading succeeds with a valid (cached?) hash but invalid URL #5144
Description
Description of the problem / feature request:
I'm noticing that download requests on bazel 0.12.0 (and 0.13.0) are succeeding with broken URLs, at least for java_import_external. These are correctly failing in 0.11.0
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
git clone https://github.com/google/bazel-common
bazel build third_party/java/truthSwitch this line to artifact = "com.google.truth:truth:0.blahblah",
bazel build third_party/java/truthNote that this succeeds, even seemingly after bazel clean --expunge. If you inspect @com_google_truth_truth//:com_google_truth_truth's jar (i.e. bazel-bazel-common/external/com_google_truth_truth/truth-0.blahblah.jar), the maven information in that jar will still say version 0.39` (the original truth version).
Is it possible that the new caching feature is not working correctly?
I think this may be related to the fact that I haven't changed the sha256. If I do that, I get the right error (either that the mirrors are down if the version is 0.blahblah or that the checksum is incorrect if it's set to a real version, like 0.40). Is there a lookup in some cache based on hash that ignores the URL entirely?
What operating system are you running Bazel on?
Linux
What's the output of bazel info release?
release 0.13.0
Any other information, logs, or outputs that you want to share?
Replace these lines with your answer.
If the files are large, upload as attachment or provide link.