Skip to content

Commit 90130c0

Browse files
committed
Added example for legacy windows platform
1 parent 7b0da18 commit 90130c0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

bundler/spec/other/major_deprecation_spec.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,38 @@
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'"

0 commit comments

Comments
 (0)