ghrelease

package
v0.92.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const BodyLimit = 1 << 20

BodyLimit caps a small metadata read; a release's checksums.txt is a few KiB, so anything larger is malformed or hostile.

View Source
const ListLimit = 8 << 20

ListLimit caps a read of the releases list. Each entry carries its notes and the metadata of every asset: a page of 100 lich releases measured 2.2 MiB in November 2026, so the cap leaves room for the notes to grow.

Variables

This section is empty.

Functions

func Get

func Get(client *http.Client, url string) (*http.Response, error)

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 ReleaseTags

func ReleaseTags(client *http.Client, url string) []string

ReleaseTags is the tags of Releases, nil on any failure.

Types

type Release added in v0.87.0

type Release struct {
	Tag  string
	Body string
}

Release is one published release: its tag as a bare version and its notes.

func Releases added in v0.87.0

func Releases(client *http.Client, url string) []Release

Releases GETs a GitHub releases list URL and returns its published releases, newest first as GitHub lists them. Drafts and pre-releases are left out: neither is something lich installs. Any failure yields nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL