Skip to content

Commit 7442c58

Browse files
committed
(maint) Limit beaker-puppet to Ruby < 3.1
beaker-puppet is not compatible with Ruby >= 3.2 due to taint functions. If you try to run `bundle install` with Ruby > 3.1 in its gemspec and beaker-puppet, Bundler errors with: Because beaker-puppet >= 3.0.0 depends on Ruby >= 2.7, < 3.2 and Gemfile depends on beaker-puppet ~> 3.0, Ruby >= 2.7, < 3.2 is required. So, because current Ruby version is = 3.2.3, version solving has failed. This commit updates the Gemfile to only list beaker-puppet if Ruby is less than 3.1.0.
1 parent d9334f3 commit 7442c58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ Gemfile:
2424
from_env: BEAKER_HOSTGENERATOR_VERSION
2525
- gem: beaker-rspec
2626
from_env: BEAKER_RSPEC_VERSION
27+
# Prevent beaker-puppet from being installed on Ruby > 3.1 until beaker-puppet supports newer Rubies (PA-6136)
2728
- gem: beaker-puppet
2829
from_env: BEAKER_PUPPET_VERSION
2930
version: '~> 3.0'
31+
condition: Gem::Requirement.create('< 3.1.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
3032
- gem: beaker-module_install_helper
3133
- gem: beaker-puppet_install_helper
3234
- gem: nokogiri

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ group :development do
4141
gem "beaker-docker", '~> 0.3', require: false
4242
gem "beaker-hostgenerator"
4343
gem "beaker-rspec"
44-
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 3.0')
44+
gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 3.0') if Gem::Requirement.create('< 3.1.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
4545
gem "beaker-module_install_helper", require: false
4646
gem "beaker-puppet_install_helper", require: false
4747
gem "nokogiri", require: false

0 commit comments

Comments
 (0)