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

Re-add Ruby 2.5 support #2686

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

mhashizume
Copy link
Contributor

@mhashizume mhashizume commented Mar 6, 2024

We dropped support for Ruby 2.5 in Facter in #2674.

However, this broke compatibility with Puppetserver 7 in rare circumstances in which Facter 4.6.0/4.6.1 was being used in conjunction with Puppetserver < 7.9.0. Up until 7.9.0, Puppetserver used JRuby 9.2.y.z, which is compatible with MRI Ruby 2.5.

This PR reverts the changes made in #2674 and limits Thor to < 1.3.0, as newer versions drop support for Ruby 2.5.

Facter is a runtime dependency of Puppet. The Puppet 7 series uses Ruby
2.5 as its minimum Ruby version.

Thor is a runtime dependency of Facter. Thor dropped Ruby 2.5 support
with version 1.3.0.

This commits sets Facter's Gemspec to use Thor < 1.3.0.
@mhashizume mhashizume requested a review from a team as a code owner March 6, 2024 21:43
Copy link
Contributor

@joshcooper joshcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since puppet#main requires ruby >= 3.1 https://github.com/puppetlabs/puppet/blob/62b1cd63e096c01883cc1a9e1a05b03d4497598d/.gemspec#L24, once puppet#7.x goes EOL, I'm thinking a future version of facter should require >= 3.1 too. Maybe Facter 5? Could you file an issue so we don't forget?

@joshcooper joshcooper merged commit d356db4 into puppetlabs:main Mar 7, 2024
17 checks passed
@mhashizume mhashizume deleted the maint/main/revert-ruby-2.5 branch March 7, 2024 01:21
@ekohl
Copy link
Contributor

ekohl commented Mar 21, 2024

Is this really correct? I'd expect bundler to figure out that it can't use thor 1.3 if they have the correct metadata. Or is Ruby 2.5's bundler broken?

@joshcooper joshcooper added the bug Something isn't working label Apr 5, 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.

3 participants