Registry / utility / creativeprojects-go-selfupdate

creativeprojects-go-selfupdate

JSON →
library1.5.2gogounverified

Automatically detects the latest release via GitHub Releases API and replaces the running binary with rollback support.

go get github.com/creativeprojects/go-selfupdate
INSTALL
IMPORT
SIG · CREATIVEPROJECTS-G
C
creativeprojects-go-selfupdate
utilitygov1.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

selfupdate
github.com/creativeprojects/go-selfupdate

Check for updates and self-update the binary.

package main import ( "log" "github.com/creativeprojects/go-selfupdate" ) func main() { updater := selfupdate.NewUpdater(selfupdate.Config{ CurrentVersion: "1.0.0", Repository: "owner/repo", }) err := updater.Update() if err != nil { log.Fatal(err) } }
Debug
Known issues
gotchaRequires GitHub Releases with specific naming conventions for binaries and tags.
fix
Ensure your release binaries follow the pattern: {binary}_{os}_{arch}.{ext} and tags are version numbers like v1.0.0.
affects: >=1.0.0
Upgrade
Version history
1.5.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
creativeprojects-go-selfupdate — go get creativeprojects-go-selfupdate · libregistry