Replace the removed bundler --deployment flag

Bundler 4 (shipped with Ruby 4) removed --deployment. Use 'bundle config set --local deployment true' (frozen + vendor/bundle) and the 'without' setting instead, in the Mastodon, akkounts and liquor-cabinet cookbooks.
This commit is contained in:
raucao committed 2026-10-08 11:34:46 +02:00
1 parent b0718a5dac
commit 0696d03374
3 files changed
+9 -3

No files matched your search

@@ -298,7 +298,9 @@ execute "bundle install" do
environment deploy_env
user deploy_user
cwd deploy_path
command "bundle install --without development,test --deployment"
command "bundle config set --local deployment true && " \
"bundle config set --local without 'development test' && " \
"bundle install"
end
execute 'rake db:migrate' do
@@ -149,7 +149,9 @@ execute "bundle install" do
environment deploy_env.merge("BUNDLE_BUILD__CHARLOCK_HOLMES" => "--with-cxxflags=-std=c++17")
user mastodon_user
cwd mastodon_path
command "bundle install --without development,test --deployment"
command "bundle config set --local deployment true && " \
"bundle config set --local without 'development test' && " \
"bundle install"
not_if build_uptodate
end
@@ -58,7 +58,9 @@ end
execute "bundle install" do
user deploy_user
cwd deploy_path
command "#{bundle_path} install --without development,test --deployment"
command "#{bundle_path} config set --local deployment true && " \
"#{bundle_path} config set --local without 'development test' && " \
"#{bundle_path} install"
end
template "#{deploy_path}/config.yml.erb" do