summaryrefslogtreecommitdiff
path: root/spec/bundler/install/gems/flex_spec.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2022-08-01 11:42:18 +1200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-23 13:59:01 +0900
commitad08674d8dc17c4ca031ce20760c4a4779c83e27 (patch)
treebf4958d6f06c36051f9c65e53c9e615ea1d978b2 /spec/bundler/install/gems/flex_spec.rb
parent2d468358a516f575d013f07801079e0906c61f0c (diff)
[rubygems/rubygems] Add CHECKSUMS for each gem in lockfile
We lock the checksum for each resolved spec under a new CHECKSUMS section in the lockfile. If the locked spec does not resolve for the local platform, we preserve the locked checksum, similar to how we preserve specs. Checksum locking only makes sense on install. The compact index information is only available then. https://github.com/rubygems/rubygems/commit/bde37ca6bf
Diffstat (limited to 'spec/bundler/install/gems/flex_spec.rb')
-rw-r--r--spec/bundler/install/gems/flex_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/bundler/install/gems/flex_spec.rb b/spec/bundler/install/gems/flex_spec.rb
index ddb9480343..484ec1f839 100644
--- a/spec/bundler/install/gems/flex_spec.rb
+++ b/spec/bundler/install/gems/flex_spec.rb
@@ -283,6 +283,10 @@ RSpec.describe "bundle flex_install" do
rack (= 0.9.1)
rack-obama
+ CHECKSUMS
+ #{checksum_for_repo_gem gem_repo1, "rack", "0.9.1"}
+ #{checksum_for_repo_gem gem_repo1, "rack-obama", "1.0"}
+
BUNDLED WITH
#{Bundler::VERSION}
L
@@ -324,6 +328,9 @@ RSpec.describe "bundle flex_install" do
DEPENDENCIES
rack
+ CHECKSUMS
+ #{checksum_for_repo_gem gem_repo1, "rack", "1.0.0"}
+
BUNDLED WITH
#{Bundler::VERSION}
L