Skip to content

Fix self-update 404 - #198

Merged
joetannenbaum merged 1 commit into
mainfrom
fix-self-update-404
Aug 18, 2026
Merged

Fix self-update 404#198
joetannenbaum merged 1 commit into
mainfrom
fix-self-update-404

Conversation

@joetannenbaum

Copy link
Copy Markdown
Collaborator

cloud self-update always failed with a 404. We configured the updater to use GithubReleasesStrategy, which builds its download URL as releases/download/{version}/{pharName}, but nothing ever calls setPharName(), so the URL had no filename on the end.

Switched to Laravel Zero's default GithubStrategy, which downloads builds/cloud from the tagged commit and fills in the filename itself. release.sh already commits the binary before tagging, so every tag has it.

Verified by building a phar stamped v0.5.0 and running self-update against it, which correctly pulled down v0.5.1.

Note that anyone on v0.5.1 or earlier still cannot self-update to the release carrying this fix, since the broken updater is the one doing the work. They will need to reinstall once.

Closes #196

@joetannenbaum
joetannenbaum merged commit c695104 into main Aug 18, 2026
6 checks passed
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.

Bug: self-update throws 404 when updating from 0.5.0 to 0.5.1

1 participant