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
The following are alternative approaches to this PR:
1. Upgrade rules_rs to 0.0.108 or newer
➕ Removes the local patch and maintenance burden
➕ Consumes the zlib fix through an upstream release
➖ Currently exposes another known upstream bug
➖ Broadens the change beyond the failing zlib bootstrap
2. Mirror zlib artifacts internally
➕ Provides direct control over artifact availability
➕ Avoids reliance on Ubuntu hosting
➖ Adds artifact hosting and maintenance overhead
➖ Duplicates immutable packages already available from Ubuntu snapshots
Recommendation: Use the local upstream patch as a temporary, low-risk fix because it preserves rules_rs 0.0.96 and existing checksums while eliminating mutable URLs. Upgrade to rules_rs 0.0.108 or newer and remove the override once the separate upstream blocker is resolved.
Files changed (2) +27 / -0
Bug fix (1) +18 / -0
rules_rs_zlib_snapshot.patchRedirect zlib bootstrap downloads to immutable snapshots+18/-0
Redirect zlib bootstrap downloads to immutable snapshots
• Repoints ARM64 and x86_64 zlib package URLs from mutable Ubuntu archive locations to a timestamped snapshot. Package versions and SHA-256 checksums remain unchanged.
MODULE.bazelApply the temporary rules_rs zlib snapshot patch+9/-0
Apply the temporary rules_rs zlib snapshot patch
• Adds a single-version override that patches rules_rs 0.0.96 during Bazel module resolution. Documents that the override should be removed when upgrading to rules_rs 0.0.108 or newer.
1. Patch added under third_party📘 Rule violation⚙ Maintainability
Description
The PR adds rules_rs_zlib_snapshot.patch beneath third_party/, which the checklist explicitly
treats as read-only. Relocate the patch to a source-controlled directory outside third_party/ and
update the override label.
PR Compliance ID 3 prohibits source changes under third_party/. The cited branch file is newly
added entirely within third_party/bazel/, directly meeting the rule's failure criterion.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The new `rules_rs_zlib_snapshot.patch` is stored under `third_party/`, despite the compliance requirement prohibiting modifications in that directory.
## Issue Context
Preserve the immutable Ubuntu snapshot override, but move the repository-maintained patch to an appropriate source directory outside `third_party/` and update its Bazel label.
## Fix Focus Areas
- third_party/bazel/rules_rs_zlib_snapshot.patch[1-20]
- MODULE.bazel[46-52]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Review mode: ⚖️ Balanced: This localized build override changes dependency patching and immutable download URLs, so correctness and supply-chain behavior warrant a complete review.
Tip of the day
💡 Did you know, you can keep summaries lean with Finding overflow, which tucks the rest behind 'View more'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
B-buildIncludes scripting, bazel and CI integrations
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issues
Upstream: hermeticbuild/rules_rs#238
💥 What does this PR do?
rules_rswe're using🔧 Implementation Notes
snapshot.ubuntu.com, which is immutable. Same file, same sha256🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes
🤖 Generated with Claude Code