Track the newest tag: @* in install snippets and bb-dev release - #24
Merged
Merged
Conversation
bb 0.45 rejects an explicit "semver:" spec alongside --tag-prefix ("Use
--tag-prefix or an explicit "semver:" spec, not both"), so every README
install line failed. The CLI rewrites --tag-prefix P with @r into
@semver:P:R, so a bare @* resolves to the newest stable P vX.Y.Z tag and
still never goes stale.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
release pinned ^<manifest version>, which on 0.x cannot reach the next minor, so bb plugin update stopped following the plugin. It now installs @* with --tag-prefix, which tracks the newest stable tag. @* resolves whether or not the checkout's own version is tagged, so release checks every target's <id>/vX.Y.Z on the remote before removing anything and refuses if one is missing (previously that case failed after remove, leaving the plugin uninstalled). Afterwards it reports the resolved tag, and notes when it differs from the checkout's or cannot be read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
bb 0.45 rejects every install snippet in the root and plugin READMEs:
The CLI turns
--tag-prefix Pwith@Rinto@semver:P:R, so a ref that is alreadysemver:…is refused.scripts/bb-dev.mjs releaseavoided that error by pinning^<manifest version>. On 0.x,^0.7.0can't reach0.8.0, sobb plugin updatestopped following the plugin. And if the checkout's version had no tag yet, the install failed afterremove, leaving the plugin uninstalled.Fix
Use a bare range:
@*with--tag-prefix <id>/. The server listsrefs/tags/<id>/v*, keeps tags whose version satisfies*, drops pre-releases and picks the newest.Install snippets (1e7e4f6)
README.mdand the four plugin READMEs: all 8 snippets now use@*, and the explanation says "the range*".CONTRIBUTING.md: the release note now says to write the bare range and warns against@semver:*with--tag-prefix.bb-dev.mjs release(6fdd5a8)@*instead of^X.Y.Z.<id>/v<version>tag exists on the remote before removing anything. If one is missing, it refuses and changes nothing, sorelease allcan't stop halfway. Without this check,@*would quietly install the previous release.@*skips pre-releases) or if it couldn't be read.CONTRIBUTING.md: one sentence on both behaviours.Verification (bb 0.45.0)
Snippets. I ran these against the installed plugins. The server resolves the tag before it checks for an existing install, so the outcomes show how far each form gets:
@semver:*+--tag-prefix(old README)not both: rejected by the CLI@^9.0.0+--tag-prefix(control)no tag … matches ^9.0.0 (looking for tags named "follow-up/vX.Y.Z")@*+--tag-prefix, all four pluginsalready installed … remove it first@semver:follow-up/:*, no flag@*Release script. I ran it against a stand-in
bbthat recordsremove/installwithout running them; the read-only calls went to the real bb:follow-up/v0.7.0)@*; prints the resolved tag0.8.0(no tag)release allwith that one untagged0.8.0-beta.1(no tag)0.6.0(a different tag resolves)bb plugin sourceunreadable0.8.0case removes and installs, so the test catches the check's absencebb plugin sourcewas unchanged afterwards for all four plugins.🤖 Generated with Claude Code