From 6225d065c059128d66c13663527b5c059ed797f0 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 6 Apr 2023 11:03:44 +0900 Subject: [PATCH] Stop using deprecated --without argument We've seen the following warning in CI jobs. ``` [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 'system_tests'`, and stop using this flag ``` This updates the usage accordingly. Change-Id: I9bddeea04ae0469b8074795b08f71ddd4ac6238e --- playbooks/run-lint-tests.yaml | 3 ++- playbooks/run-litmus-tests.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/run-lint-tests.yaml b/playbooks/run-lint-tests.yaml index 385cc3dde..e88c143f9 100644 --- a/playbooks/run-lint-tests.yaml +++ b/playbooks/run-lint-tests.yaml @@ -26,7 +26,8 @@ cmd += ' -v 2.2.11' system(cmd) EOF - $GEM_BIN_DIR/bundle install --without system_tests --retry 3 + $GEM_BIN_DIR/bundle config set --local without system_tests + $GEM_BIN_DIR/bundle install --retry 3 $GEM_BIN_DIR/bundle exec rake lint 2>&1 if [ -f metadata.json ]; then $GEM_BIN_DIR/bundle exec rake metadata_lint 2>&1 diff --git a/playbooks/run-litmus-tests.yaml b/playbooks/run-litmus-tests.yaml index 0d6181c78..5ae818091 100644 --- a/playbooks/run-litmus-tests.yaml +++ b/playbooks/run-litmus-tests.yaml @@ -23,7 +23,8 @@ cmd += ' -v 2.2.11' system(cmd) EOF - $GEM_BIN_DIR/bundle install --without system_tests --retry 3 + $GEM_BIN_DIR/bundle config set --local without system_tests + $GEM_BIN_DIR/bundle install --retry 3 export RSPEC_DEBUG=true $GEM_BIN_DIR/bundle exec rake litmus:acceptance:localhost chdir: '{{ ansible_user_dir }}/workspace'