Skip to content

Commit 8621548

Browse files
johnzillaclaude
andcommitted
fix: regenerate Cargo.lock and normalize release version check
Cargo.lock was out of sync causing `cargo test --locked` to fail in CI. Release workflow now pads two-segment tag versions (e.g. v1.3 -> 1.3.0) to match Cargo.toml's full semver format. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a28895b commit 8621548

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
run: |
1414
TAG_VERSION="${GITHUB_REF_NAME#v}"
1515
CARGO_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*= *"\(.*\)"/\1/')
16+
# Normalize: pad tag with .0 if it only has major.minor (e.g. 1.3 -> 1.3.0)
17+
TAG_DOTS=$(echo "$TAG_VERSION" | tr -cd '.' | wc -c)
18+
if [ "$TAG_DOTS" -eq 1 ]; then
19+
TAG_VERSION="${TAG_VERSION}.0"
20+
fi
1621
echo "Tag version: $TAG_VERSION"
1722
echo "Cargo version: $CARGO_VERSION"
1823
if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then

Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)