Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FACT-3434) Accept ffi >= 1.16.3, < 1.17.0 #2707

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Apr 25, 2024

ffi 1.16.0 - 1.16.2 had a bug when defining a layout in an FFI::Struct and it
was fixed in 1.16.3[1]:

ERROR -- : Facter::InternalFactManager - can't modify frozen Hash: \
  {:void=>#<FFI::Type::Builtin::VOID...

However, we can't require a minimum version of 1.16.3, because facter is
required by puppet, which also has a strict ffi requirement on '1.15.5'.

So in order to gradually update, facter needs to accept the range from 1.15.5 to
1.17.0, but exclude the problematic ffi versions.

[1] ffi/ffi#1056

ffi 1.16.0 - 1.16.2 had a bug when defining a layout in an FFI::Struct and it
was fixed in 1.16.3[1]:

    ERROR -- : Facter::InternalFactManager - can't modify frozen Hash: \
      {:void=>#<FFI::Type::Builtin::VOID...

However, we can't require a minimum version of 1.16.3, because facter is
required by puppet, which also has a strict ffi requirement on '1.15.5'.

So in order to gradually update, facter needs to accept the range from 1.15.5 to
1.17.0, but exclude the problematic ffi versions.

[1] ffi/ffi#1056
@joshcooper joshcooper marked this pull request as ready for review April 25, 2024 15:27
@joshcooper joshcooper requested a review from a team as a code owner April 25, 2024 15:27
joshcooper added a commit to joshcooper/puppet that referenced this pull request Apr 25, 2024
ffi 1.16.0 - 1.16.2 had a bug when defining a layout in an FFI::Struct and it
was fixed in 1.16.3.

See puppetlabs/facter#2707
@mhashizume mhashizume merged commit d04a42d into puppetlabs:main Apr 25, 2024
17 checks passed
@joshcooper joshcooper deleted the ffi_bump branch May 8, 2024 16:12
AriaXLi pushed a commit to AriaXLi/puppet that referenced this pull request May 9, 2024
ffi 1.16.0 - 1.16.2 had a bug when defining a layout in an FFI::Struct and it
was fixed in 1.16.3.

See puppetlabs/facter#2707

(cherry picked from commit aa51340)
@joshcooper joshcooper added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants