Repository navigation
fix(driver): move to zip 9, since every zip 8 release is yanked - #118
Merged
Merged
Conversation
zip 8.0.0 through 8.6.0 are all yanked on crates.io, so `zip = "8.6.0"` resolves only through an existing lockfile. Any fresh resolution fails: `cargo generate-lockfile` here, and downstream tools that build the driver outside a locked workspace, such as cargo-semver-checks run against pact_ffi. zip 9 returns a Result from `ZipFile::name()`. Directory detection now uses `ZipFile::is_dir()`. A new test extracts a zip with a directory and an executable file, and checks the contents and the unix mode. Assisted-by: Claude Code:claude-opus-5-5
8 of 9 tasks
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.
Goal
Make
pact-plugin-driverresolvable without an existing lockfile.Problem
Every
zip8.x release on crates.io is yanked, 8.0.0 through 8.6.0. The driver requireszip = "8.6.0", so only a lockfile that already pins a yanked version can satisfy it. Fresh resolution fails:Two places hit this:
cargo generate-lockfileindrivers/rust/driver.pact_ffiin pact-reference, because it resolvespact-plugin-driver1.2.x from scratch.Change
zipmoves to 9.0.3, the only non-yanked release.ResultfromZipFile::name(). Directory detection now usesZipFile::is_dir().Verification
cargo testindrivers/rust/driverpasses: 117 tests.cargo generate-lockfileon a copy withoutCargo.locknow succeeds.