Skip to content

feat: support incremental tag matching for demo-wallet#17

Merged
critesjosh merged 2 commits intomainfrom
feat/demo-wallet-versioned-tags
Mar 30, 2026
Merged

feat: support incremental tag matching for demo-wallet#17
critesjosh merged 2 commits intomainfrom
feat/demo-wallet-versioned-tags

Conversation

@critesjosh
Copy link
Copy Markdown
Collaborator

Summary

  • Adds matchLatestIncrementalTag config option for repos that use versioned tags with an incremental suffix (e.g., 4.2.0-aztecnr-rc.2-0, -1, -2)
  • When exact tag and v-prefix alternate both fail, fetchTag queries git ls-remote --tags for matching incremental variants and picks the highest
  • needsReclone recognizes incremental tags as matching the base version so they don't trigger unnecessary re-clones
  • Enabled for demo-wallet which uses this tagging convention

Context

demo-wallet tags releases as {version}-{N} (e.g., 4.2.0-aztecnr-rc.2-2) rather than using the exact Aztec version tag. This caused sync failures since no exact match existed.

Depends on #15 (v-prefix resilience).

Test plan

  • All 187 tests pass (4 new tests for incremental tag behavior)
  • Manual: sync demo-wallet with version v4.2.0-aztecnr-rc.2 — should resolve to 4.2.0-aztecnr-rc.2-2

🤖 Generated with Claude Code

critesjosh and others added 2 commits March 30, 2026 15:59
demo-wallet uses tags like "4.2.0-aztecnr-rc.2-0", "4.2.0-aztecnr-rc.2-1"
instead of the exact Aztec version tag. When matchLatestIncrementalTag is
set on a repo config and exact tag + v-prefix alternate both fail, fetchTag
now queries remote tags via ls-remote and picks the highest incremental
variant. needsReclone also recognizes incremental tags as matching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
needsReclone now queries ls-remote to compare the local incremental tag
against the latest upstream variant, so a checkout at -0 will re-clone
when -2 is published. Falls back gracefully if the remote is unreachable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@critesjosh critesjosh merged commit 49f7efb into main Mar 30, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant