Edouard CHIN dce202d6d6 [rubygems/rubygems] Add checksum of gems hosted on private servers:
- ### Problem

  Running `bundle lock --add-checksums` doesn't add the checksum of
  gems hosted on server that don't implement the compact index API.

  This result in a lockfile which is unusable in production as
  some checksums will be missing and Bundler raising an error.
  Users can work around this problem by running:

  `BUNDLE_LOCKFILE_CHECKSUMS=true bundle install --force`

  But this means redownloading and installing all gems which isn't
  great and slow on large apps.

  ### Context

  Bundler uses the Compact Index API to get the checksum of gems,
  but most private gem servers don't implement the compact index API
  (such as cloudsmith or packagecloud). This results in a soft failure
  on bundler side, and bundler leaving out blank checksum for those
  gems.

  ### Solution

  For gems that are hosted on private servers that don't send back
  the checksum of the gem, I'd like to fallback to the
  `bundle install` mechanism, which don't rely on an external API but
  instead compute the checksum of the package installed on disk.

  This patch goes through the spec that didn't return a checksum,
  and compute one if the package exists on disk.
  This solution makes the  `bundle lock --add-checksums` command
  actually usable in real world scenarios while keeping the
  `bundle lock` command fast enough.

https://github.com/rubygems/rubygems/commit/8e9abb5472
2025-10-15 09:54:50 +00:00
..
2025-06-04 12:47:29 +09:00
2025-06-11 05:04:16 +00:00
2025-10-09 13:31:51 +00:00
2025-10-07 01:12:43 +00:00
2025-05-20 18:22:41 +09:00
2025-07-15 12:57:18 +02:00
2025-10-06 19:10:44 +09:00
2025-06-17 09:41:45 +00:00
2025-07-08 06:11:04 +00:00
2025-06-19 01:53:19 +00:00