Skip to content

ci: fix version compute on empty tag set (unblocks v0.1.0)#21

Merged
julian-goldstein merged 1 commit into
masterfrom
fix-empty-tagset
Jun 19, 2026
Merged

ci: fix version compute on empty tag set (unblocks v0.1.0)#21
julian-goldstein merged 1 commit into
masterfrom
fix-empty-tagset

Conversation

@julian-goldstein

Copy link
Copy Markdown
Contributor

After wiping all tags, the release run failed in Compute next version: under pipefail, grep -E "$tagpat" exits 1 on no match, failing the latest=... pipeline before it could set next=0.1.0. Wrapped the grep in { grep … || true; }.

Verified: empty tag set → latest=""next=0.1.0, exit 0.

Merging this triggers release.yml on master with no tags → it publishes the fresh v0.1.0. (Same latent bug exists in the toolchain's vendor.yml, but dormant there since it always has tags — worth a follow-up patch.)

With set -o pipefail, grep exits 1 when no tags match, which failed the whole
'latest=...' pipeline — exactly the fresh-start case (no tags) that should yield
v0.1.0. Wrap the grep in { grep ... || true; } so an empty match is benign.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@julian-goldstein julian-goldstein merged commit 608e247 into master Jun 19, 2026
1 check passed
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