8000 fix(install): install the newest prerelease when there is no full release by adeelahmad · Pull Request #27 · adeelahmad/gadgetcast · GitHub
[go: up one dir, main page]

Skip to content

fix(install): install the newest prerelease when there is no full release - #27

Merged
adeelahmad merged 1 commit into
masterfrom
claude/project-thread-65265y
Oct 17, 2026
Merged

adeelahmad merged 1 commit into
masterfrom
claude/project-thread-65265y

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Before: GitHub's /releases/latest skips prereleases. Releases ship as prereleases first, so the README one-liner (curl … install.sh | sh) would stop with "no published release found", and the daily update timer would fail every day.

After: a fresh install falls back to the newest tag in the releases feed (releases.atom, no API token) and says it's installing a prerelease. The update timer still follows only full releases, and when there is none it stays on the installed version without an error.

How: latest_version tries /latest first. If that fails it falls back to the feed (install mode only), and its message goes to stderr so it isn't captured as the version. The caller treats an empty version as "nothing to update" in update mode and as an error in install mode.

Test level: sh -n and bash -n. latest_version was run under dash against a local fake release server in three states: full release, prerelease only, and no releases, each in install and update mode. All six cases give the expected tag or a clean exit. A real install on a Pi was not run.


Generated by Claude Code

…ease

GitHub's /releases/latest skips prereleases, so while every release is a
prerelease `curl install.sh | sh` stopped with "no published release
found". A fresh install now falls back to the newest tag in the
releases feed and says it is a prerelease; the update timer still only
follows full releases and quietly stays put when there is none.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4B4YKMC6fT9oWCCwWgt9S
@adeelahmad
adeelahmad merged commit 4d8e33c into master Oct 17, 2026
0 of 3 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.

2 participants

0