From 8b9e237621d427ec911959c27720030987130a1f Mon Sep 17 00:00:00 2001 From: Steven POST Date: Wed, 13 Mar 2024 13:44:13 +0100 Subject: [PATCH] Update bundler commands Several arguments no longer work. Despite looking like a warning, bundler will still try to use the system path. ``` $ bundle install --path .vendor/ --without development system_tests release --jobs "$(nproc)" [DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path '.vendor/'`, and stop using this flag [DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'development system_tests release'`, and stop using this flag Bundler 2.4.10 is running, but your lockfile was generated with 2.3.26. Installing Bundler 2.3.26 and restarting using that version. ``` --- moduleroot/.github/CONTRIBUTING.md.erb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/moduleroot/.github/CONTRIBUTING.md.erb b/moduleroot/.github/CONTRIBUTING.md.erb index 6aaa603f..88093274 100644 --- a/moduleroot/.github/CONTRIBUTING.md.erb +++ b/moduleroot/.github/CONTRIBUTING.md.erb @@ -131,19 +131,29 @@ You can install all needed gems for spec tests into the modules directory by running: ```sh -bundle install --path .vendor/ --without development system_tests release --jobs "$(nproc)" +bundle config set --local path '.vendor/' +bundle config set --local without 'development system_tests release' +bundle install --jobs "$(nproc)" ``` If you also want to run acceptance tests: ```sh -bundle install --path .vendor/ --with system_tests --without development release --jobs "$(nproc)" +bundle config set --local path '.vendor/' +bundle config set --local without 'development release' +bundle config set --local with 'system_tests' +bundle install --jobs "$(nproc)" ``` Our all in one solution if you don't know if you need to install or update gems: ```sh -bundle install --path .vendor/ --with system_tests --without development release --jobs "$(nproc)"; bundle update; bundle clean +bundle config set --local path '.vendor/' +bundle config set --local without 'development release' +bundle config set --local with 'system_tests' +bundle install --jobs "$(nproc)" +bundle update +bundle clean ``` As an alternative to the `--jobs "$(nproc)` parameter, you can set an