summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-08-14 07:14:16 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-09-03 23:38:37 +0900
commit2d3fd1fd2841e13cc65c72e870e3288923770a57 (patch)
treebdee0518077769eb6a88140fe494cf00a608a88f /lib
parentd20936c9f59a5be8f4de6057d47cbc417111b0ca (diff)
[rubygems/rubygems] Deprecate `bundle cache --frozen` and `bundle cache --no-prune`
Since they are remembered flags, too. I also restored a previous spec about `--frozen`, but didn't bother with `--no-prune`. https://github.com/rubygems/rubygems/commit/7802f016fc
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 8acf25eba6..0d993e5702 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -415,6 +415,10 @@ module Bundler
print_remembered_flag_deprecation("--all", "cache_all", "true") if ARGV.include?("--all")
print_remembered_flag_deprecation("--no-all", "cache_all", "false") if ARGV.include?("--no-all")
+ %w[frozen no-prune].each do |option|
+ remembered_flag_deprecation(option)
+ end
+
if flag_passed?("--path")
message =
"The `--path` flag is deprecated because its semantics are unclear. " \