Documentation
¶
Overview ¶
Package ghrelease reads the published releases of a GitHub repository — the one piece lich's two update checks (the app in internal/appupdate and the lich plugin in internal/agentplugin) share. It reports release tags as bare versions and never errors: a failed lookup yields nothing, which every caller treats as "no release known" so a network blip never blocks or breaks startup.
Index ¶
Constants ¶
const BodyLimit = 1 << 20
BodyLimit caps a metadata response read; a releases/latest payload — or a release's checksums.txt — is a few KiB and a page of the releases list tens of KiB, so anything larger is malformed or hostile.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get issues a GET carrying lich's identifying headers. Every GitHub read lich makes goes through here so the request shape is stated once.
func LatestTag ¶
LatestTag GETs a GitHub releases/latest URL and returns its tag as a bare semver (leading "v" stripped), or "" on any failure.
func ReleaseTags ¶
ReleaseTags GETs a GitHub releases list URL and returns the tags of its published releases as bare versions, newest first as GitHub lists them. Drafts and pre-releases are left out: neither is something lich installs. Any failure yields nil.
Types ¶
This section is empty.