File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ def fund
412412 D
413413 def cache
414414 print_remembered_flag_deprecation ( "--all" , "cache_all" , "true" ) if ARGV . include? ( "--all" )
415+ print_remembered_flag_deprecation ( "--no-all" , "cache_all" , "false" ) if ARGV . include? ( "--no-all" )
415416
416417 if flag_passed? ( "--path" )
417418 message =
Original file line number Diff line number Diff line change 199199 pending "fails with a helpful error" , bundler : "4"
200200 end
201201
202+ context "bundle cache --no-all" do
203+ before do
204+ install_gemfile <<-G
205+ source "https://gem.repo1"
206+ gem "myrack"
207+ G
208+
209+ bundle "cache --no-all" , raise_on_error : false
210+ end
211+
212+ it "should print a deprecation warning" do
213+ expect ( deprecations ) . to include (
214+ "The `--no-all` flag is deprecated because it relies on being " \
215+ "remembered across bundler invocations, which bundler will no " \
216+ "longer do in future versions. Instead please use `bundle config set " \
217+ "cache_all false`, and stop using this flag"
218+ )
219+ end
220+
221+ pending "fails with a helpful error" , bundler : "4"
222+ end
223+
202224 context "bundle cache --path" do
203225 before do
204226 install_gemfile <<-G
You can’t perform that action at this time.
0 commit comments