File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 573573 end
574574 end
575575
576+ context "bundle install with a lockfile including X64_MINGW_LEGACY platform" do
577+ before do
578+ gemfile <<~G
579+ source "https://gem.repo1"
580+ gem "rake"
581+ G
582+
583+ lockfile <<~L
584+ GEM
585+ remote: https://rubygems.org/
586+ specs:
587+ rake (10.3.2)
588+
589+ PLATFORMS
590+ ruby
591+ x64-mingw32
592+
593+ DEPENDENCIES
594+ rake
595+
596+ BUNDLED WITH
597+ #{ Bundler ::VERSION }
598+ L
599+ end
600+
601+ it "raises a helpful error" do
602+ bundle "install" , raise_on_error : false
603+
604+ expect ( err ) . to include ( "Found x64-mingw32 in lockfile, which is no longer supported as of Bundler 4.0." )
605+ end
606+ end
607+
576608 context "when Bundler.setup is run in a ruby script" do
577609 before do
578610 create_file "gems.rb" , "source 'https://gem.repo1'"
You can’t perform that action at this time.
0 commit comments