Skip to content

Commit

Permalink
[rubygems/rubygems] Simplify remembered flags deprecation message
Browse files Browse the repository at this point in the history
Configuration is now local by default.

rubygems/rubygems@6bc7709aa8
  • Loading branch information
deivid-rodriguez authored and hsbt committed Nov 27, 2023
1 parent 60803e1 commit bd4bd61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/cli.rb
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/bundler/other/major_deprecation_spec.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit bd4bd61

Please sign in to comment.