Skip to content

FIX: Use bundle config instead of flags removed in Bundler 4.x (phpbb3 import)#1075

Open
thomasrossetto wants to merge 1 commit into
discourse:mainfrom
thomasrossetto:fix/bundler4-import-flags-phpbb3
Open

FIX: Use bundle config instead of flags removed in Bundler 4.x (phpbb3 import)#1075
thomasrossetto wants to merge 1 commit into
discourse:mainfrom
thomasrossetto:fix/bundler4-import-flags-phpbb3

Conversation

@thomasrossetto

Copy link
Copy Markdown

The phpbb3 import template's after_bundle_exec hook calls:

bundle install --no-deployment --path vendor/bundle --jobs ... --without test development

Bundler 4.x has removed the --path, --no-deployment and --without install flags because they relied on being persisted across invocations. With the Bundler version now shipped in the base image (4.0.14), the hook fails with e.g. The --path flag has been removed ... and the import container bootstrap aborts (exit 15).

This moves those settings to explicit bundle config set --local ... calls and drops the removed flags from bundle install, which is the migration path Bundler itself suggests in the error message.

Note: the same pattern exists in the mssql-dep, mysql-dep, vanilla and mbox import templates. This PR is scoped to phpbb3; happy to extend it to the others if preferred.

…3 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.
@Z3SA

Z3SA commented Jun 21, 2026

Copy link
Copy Markdown

Need to merge this - i've spent a few hours cause of this old commands, gpt gave same solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants