Skip to content

Update to pact-ffi 0.5.3 and expose verifier_set_follow_redirects#12

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/update-pact-ffi-to-053
Draft

Update to pact-ffi 0.5.3 and expose verifier_set_follow_redirects#12
Copilot wants to merge 3 commits intomainfrom
copilot/update-pact-ffi-to-053

Conversation

Copy link

Copilot AI commented Feb 19, 2026

Upgrades pact-ffi from 0.5.2 to 0.5.3, exposing the new pactffi_verifier_set_follow_redirects function that controls HTTP redirect behavior during provider verification.

Changes

  • Updated FFI version in script/lib/export-binary-versions.sh
  • Added verifier_set_follow_redirects binding to PactFfi module
  • Added set_follow_redirects binding to PactFfi::Verifier module
  • Added test coverage for the new function

Usage

verifier = PactFfi::Verifier.new_for_application('app', '1.0.0')

# Disable automatic redirect following
PactFfi::Verifier.set_follow_redirects(verifier, 0)

# Or via the main module
PactFfi.verifier_set_follow_redirects(verifier, 1)

The function accepts a verifier handle pointer and a uint8 flag (0 = disable, non-zero = enable).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.rs
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • www.google-analytics.com
    • Triggering command: /usr/bin/ruby3.2 ruby3.2 /home/REDACTED/work/pact-ruby-ffi/pact-ruby-ffi/vendor/bundle/ruby/3.2.0/bin/rspec --64 -o /tmp/ccy3zXgv.o /tmp/cc4GEx4v.s (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>update to pact-ffi 0.5.3</issue_title>
<issue_description>please upgrade to pact-ffi version 0.5.3

https://github.com/pact-foundation/pact-reference/releases/tag/libpact_ffi-v0.5.3

it is referenced here

export FFI_VERSION=v0.5.2

it includes one new function

pactffi_verifier_set_follow_redirects

this should be exposed in the main ffi lib as verifier_set_follow_redirects and under the verifier as set_follow_redirects

https://github.com/pact-foundation/pact-ruby-ffi/blob/main/lib/pact/ffi.rb

https://github.com/pact-foundation/pact-ruby-ffi/blob/main/lib/pact/ffi/verifier.rb

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 19, 2026 10:41
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Copilot AI changed the title [WIP] Update pact-ffi to version 0.5.3 Update to pact-ffi 0.5.3 and expose verifier_set_follow_redirects Feb 19, 2026
Copilot AI requested a review from YOU54F February 19, 2026 10:47
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.

update to pact-ffi 0.5.3

2 participants

Comments