Skip to content

Commit

Permalink
(PE-38998) Include getoptlong for bolt-server main
Browse files Browse the repository at this point in the history
Puppet 8 now has an explict dep on getoptlong puppetlabs/puppet@5bce3bb This is a "default" gem for ruby 3. When orchestrator's jruby tries to load bolt it cant find the default gems. This commit explictly packages the getoptlong gem outside of the default gems.
  • Loading branch information
donoghuc committed Aug 9, 2024
1 parent 3b5b4ab commit 0428b67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configs/components/rubygem-getoptlong.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
component 'rubygem-getoptlong' do |pkg, settings, platform|
pkg.version '0.2.0'
pkg.md5sum '91760bf343765c5d3f08cb5393d90487'

instance_eval File.read('configs/components/_base-rubygem.rb')
end
4 changes: 4 additions & 0 deletions configs/projects/pe-bolt-server-runtime-main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
end

instance_eval File.read(File.join(File.dirname(__FILE__), '_shared-pe-bolt-server_with_ruby.rb'))
# These are ruby 3/puppet 8 specific gems. Some of them are "default/standard" gems. There
# is a very annoying issue where default gems can be loaded by MRI but not jruby.
# We explicitly pacakge up some default gems where we have explicit dependencies for jruby
proj.component 'rubygem-prime'
proj.component 'rubygem-rexml'
proj.component 'getoptlong'
end

0 comments on commit 0428b67

Please sign in to comment.