Repository navigation
Read the lockfile to keep OpenSSL out of the dependencies, so the test passes on a cold cargo cache - #274
Merged
Conversation
cargo tree --target all --offline needs every platform's crates in the cargo cache, so the test failed on a cold cache: a new CI cache key, or a contributor's machine after a plain cargo test. The lockfile names every package for every target without touching the registry. It names dev-dependencies too, so the check is stricter than before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…R 0003's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JacobStephens2
added a commit
that referenced
this pull request
Oct 1, 2026
… tree one main fixed the same test in #274 while this branch was underway: it reads Cargo.lock, so it needs no registry at all. This branch let cargo tree download the missing crates instead. One test can't do both, and main's is merged, stricter and never touches the network, so the branch now matches main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 1, 2026
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
the_binary_never_links_opensslreadsCargo.lockinstead of askingcargo treeoffline, so it no longer needs every platform's crates in the cargo cache.The lockfile also names dev-dependencies, so the check is stricter than before: a test-only OpenSSL fails it too. The test says so.
Seams tested: the packaging tests themselves, and
openssl_packages(lockfile: &str), the matching they share.Evidence
On an empty
CARGO_HOMEwith onlycargo fetch --locked --target x86_64-unknown-linux-gnurun in it:cargo test --test packagingnative-tls = "0.2"under[target.'cfg(windows)'.dependencies], on Linux:cargo fmt --check,cargo clippy --all-targets -- -D warningsand the fullcargo testpass locally.Merge Danger
Door: two-way
One test file; reverting restores the old check.
Blast Radius: tests
A dev-dependency that brings in OpenSSL now fails the test, where before only normal and build dependencies did.
Unaddressed findings
Standards
the_binary_never_links_opensslnow asserts on the whole lockfile, dev-dependencies included. Kept: the name states what ADR 0003 asks for, the issue names the test as the interface to keep, and the doc comment onopenssl_packagessays where the check is stricter.openssl_packagesalso returnsnative-tls. Kept:native-tlsis banned because it links OpenSSL on Linux, which the doc line "would link OpenSSL" covers; the reviewer also suggested leaving it unless the list grows.Spec
None: the Spec review reported no findings.
Closes #269
🤖 Generated with Claude Code