[sysadmin/neon-tooling] /: ensure using correct bundler version when bundling
Carlos De Maine <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit ae4b0efac8badbce36cf2670518a96104cd12ec2 by Carlos De Maine.
Committed on 19/07/2026 at 09:50.
Pushed by carlosdem into branch 'master'.
ensure using correct bundler version when bundling
M +3 -1 deploy_in_container.rake
https://invent.kde.org/sysadmin/neon-tooling/-/commit/ae4b0efac8badbce36cf2670518a96104cd12ec2
diff --git a/deploy_in_container.rake b/deploy_in_container.rake
index 51847bf2..a9ac7008 100644
--- a/deploy_in_container.rake
+++ b/deploy_in_container.rake
@@ -153,7 +153,8 @@ def bundle_install
FileUtils.rm_rf('.bundle/')
FileUtils.rm_rf('vendor/')
#bundle('config' 'set' '--local' 'system' 'true')
- bundle('install', "--jobs=#{[Etc.nprocessors / 2, 1].max}", '--verbose')
+ gem install --force bundler:2.5.9
+ bundle('_2.5.9_', 'install', "--jobs=#{[Etc.nprocessors / 2, 1].max}", '--verbose')
rescue StandardError => e
log_dir = "#{tooling_path}/#{ENV['DIST']}_#{ENV['TYPE']}"
Dir.glob('/var/lib/gems/*/extensions/*/*/*/mkmf.log').each do |log|
@@ -284,6 +285,7 @@ update: --no-document
# Force in case the found bundler was installed for a different version.
# Otherwise rubygems will raise an error when attempting to overwrite the
# bin.
+ sh 'gem uninstall bundler:2.5.22'
sh 'gem uninstall bundler:2.5.10'
sh 'gem uninstall bundler:2.5.11'
sh 'gem install --force bundler:2.5.9'