Skip to content

Commit e39f791

Browse files
xbtoshiclaude
andcommitted
v0.1.36: print install.sh fallback when update check fails
Timeouts, transient failures, or future rate-limits now end with a concrete recovery command rather than just an error message. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 473e560 commit e39f791

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes to **kyc-cli** and **sshwap** are documented here.
44
The format is loosely [Keep a Changelog](https://keepachangelog.com/);
55
versioning follows [SemVer](https://semver.org/).
66

7+
## [0.1.36] — 2026-05-11
8+
9+
### Changed
10+
- **`kyc-cli update` prints an `install.sh` fallback on check failure.**
11+
Network timeouts, transient API errors, or a future rate-limit
12+
surface now end with a concrete escape hatch — a one-line
13+
`curl ... | sh` that hits the CDN download path directly. The
14+
background nudge stays silent (we don't want to pester users on
15+
flaky networks).
16+
717
## [0.1.35] — 2026-05-11
818

919
### Fixed

cmd/kyc-cli/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ func runUpdate(args []string) {
118118
tag, err := update.CheckLatest(ctx, version)
119119
if err != nil {
120120
fmt.Fprintln(os.Stderr, "update check failed:", err)
121+
fmt.Fprintln(os.Stderr)
122+
fmt.Fprintln(os.Stderr, "fallback — install the latest release directly:")
123+
fmt.Fprintln(os.Stderr, " curl -fsSL https://raw.githubusercontent.com/kyc-rip/cli/master/scripts/install.sh | sh")
124+
fmt.Fprintln(os.Stderr)
125+
fmt.Fprintln(os.Stderr, "or pin a specific version:")
126+
fmt.Fprintln(os.Stderr, " curl -fsSL https://raw.githubusercontent.com/kyc-rip/cli/master/scripts/install.sh | sh -s v0.1.34")
121127
os.Exit(1)
122128
}
123129
if tag == "" {

0 commit comments

Comments
 (0)