diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2023-08-09 13:45:56 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-10-23 13:59:01 +0900 |
commit | c5fd94073ff2e22b6eea29c242c7e4a12ed7c865 (patch) | |
tree | 327479235e44b16b1dd927b3d6b8b53b36bdc8c8 /spec/bundler/lock | |
parent | 69d7e9a12eb6e3dbfa1b1021b73c2afcbf7d4a46 (diff) |
[rubygems/rubygems] Refactor to checksums stored via source
This gets the specs passing, and handles the fact that we expect
checkums to be pinned only to a particular source
This also avoids reading in .gem files during lockfile generation,
instead allowing us to query the source for each resolved gem to grab
the checksum
Finally, this opens up a route to having user-stored checksum databases,
similar to how other package managers do this!
Add checksums to dev lockfiles
Handle full name conflicts from different original_platforms when adding checksums to store from compact index
Specs passing on Bundler 3
https://github.com/rubygems/rubygems/commit/86c7084e1c
Diffstat (limited to 'spec/bundler/lock')
-rw-r--r-- | spec/bundler/lock/lockfile_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/bundler/lock/lockfile_spec.rb b/spec/bundler/lock/lockfile_spec.rb index 0f0169062e..04355792ef 100644 --- a/spec/bundler/lock/lockfile_spec.rb +++ b/spec/bundler/lock/lockfile_spec.rb @@ -146,6 +146,9 @@ RSpec.describe "the lockfile format" do DEPENDENCIES rack + CHECKSUMS + #{checksum_for_repo_gem(gem_repo2, "rack", "1.0.0")} + BUNDLED WITH #{version} L @@ -171,6 +174,9 @@ RSpec.describe "the lockfile format" do DEPENDENCIES rack + CHECKSUMS + #{checksum_for_repo_gem(gem_repo2, "rack", "1.0.0")} + BUNDLED WITH #{version} G @@ -677,6 +683,10 @@ RSpec.describe "the lockfile format" do DEPENDENCIES ckeditor! + CHECKSUMS + #{checksum_for_repo_gem(gem_repo4, "ckeditor", "4.0.8", :empty => true)} + #{checksum_for_repo_gem(gem_repo4, "orm_adapter", "0.4.1", :empty => true)} + BUNDLED WITH #{Bundler::VERSION} L @@ -1516,6 +1526,10 @@ RSpec.describe "the lockfile format" do DEPENDENCIES direct_dependency + CHECKSUMS + #{checksum_for_repo_gem(gem_repo4, "direct_dependency", "4.5.6")} + #{checksum_for_repo_gem(gem_repo4, "indirect_dependency", "1.2.3")} + BUNDLED WITH #{Bundler::VERSION} G @@ -1570,6 +1584,10 @@ RSpec.describe "the lockfile format" do DEPENDENCIES minitest-bisect + CHECKSUMS + #{checksum_for_repo_gem(gem_repo4, "minitest-bisect", "1.6.0")} + #{checksum_for_repo_gem(gem_repo4, "path_expander", "1.1.1")} + BUNDLED WITH #{Bundler::VERSION} L |