From 61060d349d26f6ae6388b75899ba0a438906efdb Mon Sep 17 00:00:00 2001 From: Martin Emde Date: Tue, 25 Feb 2025 13:51:36 -0800 Subject: [PATCH] [rubygems/rubygems] Remove MD5 digesting of compact index responses It has been over a year since the release, so let's stop MD5ing everything https://github.com/rubygems/rubygems/commit/29ef4ca30b --- lib/bundler/compact_index_client.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/bundler/compact_index_client.rb b/lib/bundler/compact_index_client.rb index a4f5bb1638..37e2ccced8 100644 --- a/lib/bundler/compact_index_client.rb +++ b/lib/bundler/compact_index_client.rb @@ -28,11 +28,7 @@ module Bundler # It may be called concurrently without global interpreter lock in some Rubies. # As a result, some methods may look more complex than necessary to save memory or time. class CompactIndexClient - # NOTE: MD5 is here not because we expect a server to respond with it, but - # because we use it to generate the etag on first request during the upgrade - # to the compact index client that uses opaque etags saved to files. - # Remove once 2.5.0 has been out for a while. - SUPPORTED_DIGESTS = { "sha-256" => :SHA256, "md5" => :MD5 }.freeze + SUPPORTED_DIGESTS = { "sha-256" => :SHA256 }.freeze DEBUG_MUTEX = Thread::Mutex.new # info returns an Array of INFO Arrays. Each INFO Array has the following indices: