You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FreeBSD recently switched from Ruby 3.0 to 3.1 as default FreeBSD version. All packages where rebuild with Ruby 3.1, but after updating them, bolt fails to run:
romain@zappy ~ % bolt
/usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:2287:in `raise_if_conflicts': Unable to activate puppet_forge-4.0.0, because faraday-1.10.3 conflicts with faraday (~> 2.0) (Gem::ConflictError)
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1418:in `activate'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1456:in `block in activate_dependencies'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1438:in `each'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1438:in `activate_dependencies'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1420:in `activate'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1456:in `block in activate_dependencies'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1438:in `each'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1438:in `activate_dependencies'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems/specification.rb:1420:in `activate'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems.rb:282:in `block in activate_bin_path'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems.rb:281:in `synchronize'
from /usr/local/lib/ruby/site_ruby/3.1/rubygems.rb:281:in `activate_bin_path'
from /usr/local/bin/bolt:25:in `<main>'
Expected Behavior
Bolt should work as before.
Steps to Reproduce
On FreeBSD:
pkg install bolt
Environment
Version 0.6.1
Platform FreeBSD 13.2-RC3
Additional Context
Bolt indirectly depends on two different versions of faraday:
With the update to ruby 3.1, gem loading and version check have been
improved and detect conflicts that prevent bolt from starting:
puppetlabs/orchestrator_client-ruby#37
With hat: puppet
smortex
added a commit
to smortex/orchestrator_client-ruby
that referenced
this issue
Nov 28, 2023
Describe the Bug
FreeBSD recently switched from Ruby 3.0 to 3.1 as default FreeBSD version. All packages where rebuild with Ruby 3.1, but after updating them, bolt fails to run:
Expected Behavior
Bolt should work as before.
Steps to Reproduce
On FreeBSD:
pkg install bolt
Environment
Additional Context
Bolt indirectly depends on two different versions of faraday:
Ruby 3.0 seems to cope with this, but 3.1 complains.
Adjusting
orchestrator_client-0.6.1.gemspec
and changing the version requirement for faraday from~> 1.4
to~> 2.0
seems to workaround the issue.I'll open a PR tomorrow to bump the version requirement.
The text was updated successfully, but these errors were encountered: