Skip to content

feat(cli): exit 2 on restore cache miss#269

Merged
alecthomas merged 1 commit intomainfrom
aat/cli-restore-miss-exit-code
Apr 20, 2026
Merged

feat(cli): exit 2 on restore cache miss#269
alecthomas merged 1 commit intomainfrom
aat/cli-restore-miss-exit-code

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

Distinguishes cache miss from errors using grep/diff exit-code
convention: 0 for hit, 2 for miss, 1 for error. Enables
"try-restore, proceed-on-miss" workflows (e.g. Homebrew, cargo
target) without needing "|| true" which masks real errors.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Distinguishes cache miss from errors using grep/diff exit-code
convention: 0 for hit, 2 for miss, 1 for error. Enables
"try-restore, proceed-on-miss" workflows (e.g. Homebrew, cargo
target) without needing "|| true" which masks real errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner April 20, 2026 04:57
@alecthomas alecthomas requested review from worstell and removed request for a team April 20, 2026 04:58
@alecthomas alecthomas enabled auto-merge (squash) April 20, 2026 04:59
@alecthomas alecthomas merged commit 7ca107b into main Apr 20, 2026
8 checks passed
@alecthomas alecthomas deleted the aat/cli-restore-miss-exit-code branch April 20, 2026 04:59
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.

1 participant