From 55de3c80971a0f8394c635715bd2192563789aae Mon Sep 17 00:00:00 2001 From: Thomas Rossetto Date: Fri, 12 Jun 2026 16:46:29 +0200 Subject: [PATCH] FIX: Use bundle config instead of flags removed in Bundler 4.x (phpbb3 import) Bundler 4.x removed the --path, --no-deployment and --without install flags because they relied on being persisted across invocations. With the Bundler version shipped in the base image (4.0.14) the phpbb3 import hook fails (e.g. "The --path flag has been removed ...") and the import container bootstrap aborts with exit 15. Move those settings to explicit 'bundle config set --local' calls and drop the removed flags from 'bundle install', as the Bundler error message itself suggests. --- templates/import/phpbb3.template.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/import/phpbb3.template.yml b/templates/import/phpbb3.template.yml index 4744620eb..a799cf2eb 100644 --- a/templates/import/phpbb3.template.yml +++ b/templates/import/phpbb3.template.yml @@ -114,5 +114,7 @@ hooks: cmd: - echo "gem 'mysql2'" >> Gemfile - echo "gem 'ruby-bbcode-to-md', :github => 'nlalonde/ruby-bbcode-to-md'" >> Gemfile - - su discourse -c 'bundle config unset deployment' - - su discourse -c 'bundle install --no-deployment --path vendor/bundle --jobs $(($(nproc) - 1)) --without test development' + - su discourse -c 'bundle config set --local deployment false' + - su discourse -c 'bundle config set --local path vendor/bundle' + - su discourse -c 'bundle config set --local without "test development"' + - su discourse -c 'bundle install --jobs $(($(nproc) - 1))'