From 44e11e1fcd8ba36a9267c4e822bc41d75670d015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 2 Sep 2020 17:10:27 +0200 Subject: [PATCH] Merge pull request #3917 from eregon/fix-deprecation-warning-that-would-wrongly-config-globally Fix deprecation messages for `bundle install` flags, the config should be --local as before (cherry picked from commit dc133dceca0ea12b1fb0ad492ad3c9a607d1a430) --- bundler/UPGRADING.md | 4 +-- bundler/lib/bundler.rb | 2 +- bundler/lib/bundler/cli.rb | 14 +++++----- bundler/lib/bundler/dsl.rb | 2 +- bundler/lib/bundler/fetcher.rb | 2 +- bundler/lib/bundler/lazy_specification.rb | 2 +- bundler/lib/bundler/rubygems_gem_installer.rb | 2 +- bundler/lib/bundler/source_list.rb | 2 +- bundler/man/bundle-config.1 | 24 ++++++++--------- bundler/man/bundle-config.1.txt | 27 ++++++++++--------- bundler/man/bundle-config.ronn | 24 ++++++++--------- bundler/man/gemfile.5 | 4 +-- bundler/man/gemfile.5.ronn | 4 +-- bundler/man/gemfile.5.txt | 4 +-- bundler/spec/bundler/source_list_spec.rb | 2 +- bundler/spec/commands/outdated_spec.rb | 4 +-- bundler/spec/install/gemfile/platform_spec.rb | 2 +- .../spec/install/gems/compact_index_spec.rb | 4 +-- .../spec/install/gems/dependency_api_spec.rb | 2 +- bundler/spec/other/major_deprecation_spec.rb | 8 +++--- 20 files changed, 70 insertions(+), 69 deletions(-) diff --git a/bundler/UPGRADING.md b/bundler/UPGRADING.md index 16ee8d3e759e..efee3704ad23 100644 --- a/bundler/UPGRADING.md +++ b/bundler/UPGRADING.md @@ -9,7 +9,7 @@ look like. All these deprecations are printed by default in the Bundler 2.1 rele If you don't want to deal with deprecations right now and want to toggle them off, you can do it through configuration. Set the `BUNDLE_SILENCE_DEPRECATIONS` environment variable to "true", or configure it through `bundle config` either -globally through `bundle config set silence_deprecations true` command, or +globally through `bundle config set --global silence_deprecations true` command, or locally through `bundle config set --local silence_deprecations true`. From now on in this document we will assume that all three of these configuration options are available, but will only mention `bundle config set