feat: support incremental tag matching for demo-wallet#17
Merged
critesjosh merged 2 commits intomainfrom Mar 30, 2026
Merged
Conversation
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>
|
🎉 This PR is included in version 1.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
matchLatestIncrementalTagconfig option for repos that use versioned tags with an incremental suffix (e.g.,4.2.0-aztecnr-rc.2-0,-1,-2)fetchTagqueriesgit ls-remote --tagsfor matching incremental variants and picks the highestneedsReclonerecognizes incremental tags as matching the base version so they don't trigger unnecessary re-clonesdemo-walletwhich uses this tagging conventionContext
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
v4.2.0-aztecnr-rc.2— should resolve to4.2.0-aztecnr-rc.2-2🤖 Generated with Claude Code