Skip to content

fix(net): stop passing off a failed artifact-URL resolution as a successful one - #877

Merged
indaco merged 2 commits into
mainfrom
fix/head-resolve-reports-failed-hops
Aug 20, 2026
Merged

fix(net): stop passing off a failed artifact-URL resolution as a successful one#877
indaco merged 2 commits into
mainfrom
fix/head-resolve-reports-failed-hops

Conversation

@indaco

@indaco indaco commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Description

An extensionless cask URL is resolved by walking redirects with a HEAD request; where that walk lands is what picks the artifact type, .pkg included.

The walk could lie twice. It treated any status from 301 to 308 as a redirect, so 304, 305 and 306 moved it off the real URL. And a walk that failed - dead origin, dead hop, unusable Location - returned however far it got, so the installer classified an untouched URL and told the user "Unsupported cask format" when the network was simply down.

Now only real redirects are followed, and a walk that cannot finish is an error the installer reports for what it is.

Related Issue

  • None

Notes for Reviewers

  • No install that used to succeed now fails; these paths already ended in an error, just with the wrong message.

@indaco
indaco merged commit 51b7dcb into main Aug 20, 2026
3 checks passed
@indaco
indaco deleted the fix/head-resolve-reports-failed-hops branch August 20, 2026 16:01
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.

1 participant