8000 crates/common: fix error checking in Gcs fetcher impl, check request error in CachingDownloader by twitchyliquid64 · Pull Request #86 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

crates/common: fix error checking in Gcs fetcher impl, check request error in CachingDownloader - #86

Merged
twitchyliquid64 merged 1 commit into
mainfrom
tom/fix
Apr 1, 2026
Merged

twitchyliquid64 merged 1 commit into
mainfrom
tom/fix

Conversation

@twitchyliquid64
Copy link
Copy Markdown
Contributor

Fixes a panic when trying to populate an entry in CachingDownloader (i.e. source fetch) where the FetchBackend returns a non-200 code, e.g.

called `Result::unwrap()` on an `Err` value: Error { kind: Transport(TransportDetails { status_code: Some(404), headers: Some({"content-type": "text/html; charset=UTF-8", "x-guploader-uploadid": "<redacted>", "date": "Wed, 01 Apr 2026 <redacted>", "vary": "Origin", "vary": "X-Origin", "cache-control": "private, max-age=0", "content-length": "76", "server": "UploadServer", payload: Some(b"No such object: minimal-staging-archives/clang-tools-extra-21.1.8.src.tar.xz") }), source: None }

@twitchyliquid64
twitchyliquid64 requested a review from msample April 1, 2026 04:33
@msample msample left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0