Skip to content

Commit

Permalink
Simplify remembered flags deprecation message
Browse files Browse the repository at this point in the history
Configuration is now local by default.
  • Loading branch information
deivid-rodriguez committed Nov 23, 2023
1 parent 6b3de2c commit 6bc7709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli.rb
Original file line number Diff line number Diff line change
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 bundler/spec/other/major_deprecation_spec.rb
Original file line number Diff line number Diff line change
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 6bc7709

Please sign in to comment.