Skip to content

fix(driver): move to zip 9, since every zip 8 release is yanked - #118

Merged
JP-Ellis merged 1 commit into
mainfrom
fix/driver-zip-9
Oct 16, 2026
Merged

JP-Ellis merged 1 commit into
mainfrom
fix/driver-zip-9

Conversation

@JP-Ellis

Copy link
Copy Markdown
Member

Goal

Make pact-plugin-driver resolvable without an existing lockfile.

Problem

Every zip 8.x release on crates.io is yanked, 8.0.0 through 8.6.0. The driver requires zip = "8.6.0", so only a lockfile that already pins a yanked version can satisfy it. Fresh resolution fails:

error: failed to select a version for the requirement `zip = "^8.6.0"`
  version 8.6.0 is yanked

Two places hit this:

  • cargo generate-lockfile in drivers/rust/driver.
  • Any downstream tool that builds the driver outside a locked workspace. cargo-semver-checks, for example, fails for pact_ffi in pact-reference, because it resolves pact-plugin-driver 1.2.x from scratch.

Change

  • zip moves to 9.0.3, the only non-yanked release.
  • zip 9 returns a Result from ZipFile::name(). Directory detection now uses ZipFile::is_dir().
  • A new unit test extracts a zip containing a directory and an executable file, then checks the contents and the unix mode.

Verification

  • cargo test in drivers/rust/driver passes: 117 tests.
  • cargo generate-lockfile on a copy without Cargo.lock now succeeds.

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
@JP-Ellis
JP-Ellis merged commit 7a290b6 into main Oct 16, 2026
24 checks passed
@JP-Ellis
JP-Ellis deleted the fix/driver-zip-9 branch October 16, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant