-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Warn user when using unstable GitHub archive URL #15128
Comments
Is |
The only thing that is guaranteed to be stable (and automatically generated) is |
I guess if there's a warning for this we may want an opt out because of that case. |
For my part, I use |
I'm running a `bazel build //...` now and things look fine, so I'm guessing this is now correct. But it seems like GH changed something about their /archive/ downloads that just changed the checksums. Releases appear to be unaffected. I don't have any reference for what changed though. bazelbuild/bazel#15128 says to use /refs/tags, but I think we can't do that when we're trying to get a specific commit.
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
In bazel-contrib/SIG-rules-authors#11 we did a bunch of research, including reaching out to GH support.
TL;DR:
http_archive
should never usearchive/v1.2.3.tar.gz
urls as the hash cannot be guaranteed to be stable. Howeverrefs/tags/v1.2.3.tar.gz
URLs are guaranteed.Bazel should warn users when they give an unstable URL since it's a nasty surprise when the sha256 stops matching upstream suddenly.
The text was updated successfully, but these errors were encountered: