Repository navigation
chore: download pact_ffi from the dist-built release - #26
Merged
Merged
Conversation
pact-reference publishes pact_ffi through cargo-dist from 0.5.12 as
`pact_ffi-v<version>`, with one `pact_ffi-<target>.{tar.xz,zip}` archive
per Rust target triple. The legacy `libpact_ffi-v<version>` release with
single-file .gz assets stops on 2027-06-30.
- platforms.rb maps each native lib directory to its target triple.
- download_libs.rb fetches the archive and its .sha256, verifies the
digest, and extracts only the shared library (tar for tar.xz, unzip
for the Windows zip) into the same ffi/<dir>/<lib> path. Headers come
from the new release.
- release.rb selects the newest `pact_ffi-v` release.
- version.rb moves from 0.5.8.1 to 0.5.12.0, because the archive layout
exists from pact_ffi 0.5.12 onwards.
- DEVELOPING.md names the new tag.
Assisted-by: Claude Code:claude-opus-5-5
JP-Ellis
marked this pull request as ready for review
October 20, 2026 05:49
YOU54F
approved these changes
Oct 23, 2026
Member
|
Thanks Josh! :) |
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
pact-reference now builds
pact_ffiwith cargo-dist. From 0.5.12, each release is taggedpact_ffi-v<version>and carries one archive per Rust target triple. The legacylibpact_ffi-v<version>release, with the single-file.gznames this gem downloads, stops on 2027-06-30.Changes
script/lib/platforms.rbmaps each native lib directory to its target triple.script/download_libs.rb:pact_ffi-<target>.tar.xz(.zipfor Windows) and its.sha256;ffi/<dir>/<lib>path;script/release.rbselects the newestpact_ffi-vrelease.{ffi}.{N}scheme ties the gem version to it.DEVELOPING.mdnames the new tag.Testing
On macOS arm64:
ruby script/download_libs.rband--allagainst 0.5.12: every checksum verified, and all 7 libraries extracted.make test: 6 examples, 0 failures.release.rbselection returnspact_ffi-v0.5.12.Not run: loading the Linux and Windows libraries, and the multi-platform gem build.