diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 2938f30e97e62f..942f2984d4934c 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -888,7 +888,7 @@ def flag_deprecation(name, flag_name, option) Bundler::SharedHelpers.major_deprecation 2, "The `#{flag_name}` 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 #{name.tr("-", "_")} " \ + "do in future versions. Instead please use `bundle config set #{name.tr("-", "_")} " \ "'#{value}'`, and stop using this flag" end end diff --git a/spec/bundler/other/major_deprecation_spec.rb b/spec/bundler/other/major_deprecation_spec.rb index baec67ec340def..f6d532529942d8 100644 --- a/spec/bundler/other/major_deprecation_spec.rb +++ b/spec/bundler/other/major_deprecation_spec.rb @@ -125,7 +125,7 @@ expect(deprecations).to include( "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 " \ + "longer do in future versions. Instead please use `bundle config set " \ "path 'vendor/bundle'`, and stop using this flag" ) end @@ -147,7 +147,7 @@ expect(deprecations).to include( "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 " \ + "longer do in future versions. Instead please use `bundle config set " \ "path 'vendor/bundle'`, and stop using this flag" ) end @@ -395,7 +395,7 @@ "The `#{flag_name}` 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 #{option_name} '#{value}'`, and stop using this flag" + "`bundle config set #{option_name} '#{value}'`, and stop using this flag" ) end