This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #4477 - bundler:seg-checksum-mismatch-error, r=indirect
[Updater] Raise a more helpful error on checksum mismatch @indirect this will make diagnosing #4472 much easier.
- Loading branch information
Showing
7 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
require "pathname" | ||
require "set" | ||
|
||
|
1 change: 1 addition & 0 deletions
1
lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
class Bundler::CompactIndexClient | ||
class Cache | ||
attr_reader :directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
lib/bundler/vendor/compact_index_client/lib/compact_index_client/version.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# frozen_string_literal: true | ||
class Bundler::CompactIndexClient | ||
VERSION = "0.1.0" | ||
VERSION = "0.1.0".freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
require File.expand_path("../compact_index", __FILE__) | ||
|
||
Artifice.deactivate | ||
|
||
class CompactIndexChecksumMismatch < CompactIndexAPI | ||
get "/versions" do | ||
headers "ETag" => quote("123") | ||
headers "Surrogate-Control" => "max-age=2592000, stale-while-revalidate=60" | ||
content_type "text/plain" | ||
body "" | ||
end | ||
end | ||
|
||
Artifice.activate_with(CompactIndexChecksumMismatch) |