Skip to content

Commit 94205e1

Browse files
sionsmithclaude
andcommitted
fix: commit Cargo.lock for audit, add homebrew download retry
- Remove Cargo.lock from .gitignore so rustsec/audit-check can run - Add retry logic (5 attempts, 15s delay) to homebrew tap job for GitHub CDN propagation delays - Bump to v0.1.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 56c5625 commit 94205e1

5 files changed

Lines changed: 2689 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,22 @@ jobs:
8686
BASE_URL="https://github.com/osodevops/keito-cli/releases/download/${GITHUB_REF_NAME}"
8787
8888
# Download each binary tarball and compute SHA256
89-
curl -fsSL "${BASE_URL}/keito-aarch64-apple-darwin.tar.gz" -o arm64.tar.gz
90-
curl -fsSL "${BASE_URL}/keito-x86_64-apple-darwin.tar.gz" -o x86_64_mac.tar.gz
91-
curl -fsSL "${BASE_URL}/keito-x86_64-unknown-linux-gnu.tar.gz" -o x86_64_linux.tar.gz
89+
# Retry up to 5 times with 15s delay to allow CDN propagation
90+
download_with_retry() {
91+
local url="$1" output="$2"
92+
for i in 1 2 3 4 5; do
93+
if curl -fsSL "$url" -o "$output"; then
94+
return 0
95+
fi
96+
echo "Attempt $i failed for $output, retrying in 15s..."
97+
sleep 15
98+
done
99+
echo "Failed to download $output after 5 attempts"
100+
return 1
101+
}
102+
download_with_retry "${BASE_URL}/keito-aarch64-apple-darwin.tar.gz" arm64.tar.gz
103+
download_with_retry "${BASE_URL}/keito-x86_64-apple-darwin.tar.gz" x86_64_mac.tar.gz
104+
download_with_retry "${BASE_URL}/keito-x86_64-unknown-linux-gnu.tar.gz" x86_64_linux.tar.gz
92105
93106
SHA_ARM64=$(sha256sum arm64.tar.gz | awk '{print $1}')
94107
SHA_X86_64_MAC=$(sha256sum x86_64_mac.tar.gz | awk '{print $1}')

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/target
2-
Cargo.lock
32
*.swp
43
*.swo
54
.DS_Store

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8-
## [Unreleased]
8+
## [0.1.1] - 2026-03-05
99

1010
### Added
1111

1212
- `keito time stop --discard` — abandon a running timer without saving, deletes the time entry
1313
- Richer JSON error output with `suggestion` and `details` fields for agent-friendly recovery hints
1414

15+
### Fixed
16+
17+
- Commit `Cargo.lock` so `rustsec/audit-check` can run in CI
18+
- Add retry logic to Homebrew tap job to handle GitHub CDN propagation delays
19+
1520
## [0.1.0] - 2026-03-05
1621

1722
### Added

0 commit comments

Comments
 (0)