feat(release): package firstmate for roca plugin install and update - #8
Merged
Conversation
Tag-driven CI ships darwin-arm64 and linux-amd64 archives with plugin.json, empty firstmate.db, the executable, and matching checksums. README is the normative plugin-author example.
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.
Intent
Give roca-firstmate a real release pipeline so operators can install and update the plugin through La Roca's supported path (
roca plugin install/roca plugin update).Until now that path could not work: there were no published releases, the git tree was not an installable package (
checksums.txtcovered onlyplugin.json), and an update of an existing custodial install failed withchecksums.txt declares [plugin.json], want exactly [firstmate.db plugin.json].This repository is also the normative example for third-party La Roca plugins, so the README has to walk an author through the shape: manifest, federated database and semantic fragment, verb dispatch via the plugin executable, custodial data, packaging and checksums, release flow, install and update, and semver.
What changed
.tar.gzwithplugin.json, an empty custodialfirstmate.db, theroca-firstmateexecutable, andchecksums.txtcovering exactly those three payload files. Versioned names and stablelatest/downloadnames are both published.make package/make dist) generates the empty database at pack time. The git tree still does not commit a.dbfile.plugin.jsonis 0.5.0 withbinary: roca-firstmate, so install places the executable in the plugin directory and on PATH (roca firstmate <verb>).owner/repoinstalls cannotplugin update, because La Roca re-resolves the recorded source and the git tree is not an installable package. That is documented as a one-time cutover. The supported path is the release archive.Out of scope and unchanged: plugin runtime behavior, La Roca product code, watcher design.
Testing
Scratch-home e2e against the installed La Roca plugin installer (never a live home):
firstmate.dbpreservedroca firstmatedispatch after installplugin.jsonrejectedmake distproduced both platform archives. The workflow checksum-verification step accepted both: each archive contains exactlychecksums.txt,firstmate.db,plugin.json, androca-firstmate, and the checksums match.Pipeline
Document step auto-fixed the versioning table so binary and payload-file changes are explicit MAJOR after a public release. Review, test, lint, and CI passed.