Repository navigation
fix: compute latest from stable releases only - #8
Merged
Merged
Conversation
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
index.jsonsetswindow'slatestto the nightly0.1.0-nightly.20261003.g9872875840f7, sorpp searchadvertises a prerelease as the version to use.rpp add <name>never readslatestand never picks prereleases, so the two disagree.Fix
scripts/registry.py indexnow setslatestto the newest non-yanked stable version, meaning one with no-prerelease suffix.index.json, the same way a fully yanked plugin already is. The shipped rpp CLI deserializesindex.jsonasVec<SearchHit>withlatest: semver::Version(crates/rpp-fetch/src/registry/index.rs). Anullor missinglatestwould fail to parse the whole file and breakrpp searchfor every plugin. A prereleaselatestwould contradictrpp add <name>, which selects withVersionReq::STAR, and that never matches prereleases. Omitting the plugin works with the current CLI.index.jsonis regenerated.windowonly has prereleases (0.1.0-alpha.0and two nightlies), so it drops out ofindex.jsonuntil its first stable release.plugins/window.jsonis unchanged, andrpp add window@<prerelease>still works.latest, prerelease-only plugins, and semver ordering across-alpha,-beta, old-nightly.YYYYMMDD.g<sha12>nightlies, new-nightly.YYYYMMDDHHMMSS.g<sha12>nightlies,-rc, and the release. They also check that a new-format nightly can be appended after old-format ones. The existing validation already accepts both nightly formats, so no validation change was needed.0.1.0-beta.1sorts below already-registered0.1.0-nightly…versions, so append-only registration would have rejected it. Published versions remain immutable: they can't be removed, edited, reordered or un-yanked.latestrule and the prerelease version formats.🤖 Generated with Claude Code