A release before 0.4.0 is told the one line that upgrades it (martha#196) #219
Loading…
Reference in a new issue
No description provided.
Delete branch "pallas/196-upgrade-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #196.
Purpose (defect): a person on martha 0.3.x is told the one command that upgrades them, in the two places they look, instead of a 404 to interpret.
The defect
martha installon 0.3.x runs the installer that release pins, and that installer reads releases only from ghcr.io. Releases moved to git.macula.io/macula-pub (martha#114), so the command answers 404 — from a binary published before the move, which nobody can teach to look elsewhere.The fix
Documentation, because the shipped code cannot carry the fix: the installer in this tree already reads macula-pub, so a ghcr 404 never reaches it, and the release that 404s cannot be changed. So both pages a person upgrading reads now name the bootstrap line:
docs/getting-started.md— "Upgrading Martha" says plainly what 0.3.x refuses with and why, then the line that upgrades it once: the bootstrapnpxline with the registry the README uses, and thenpm viewline that prints the exact installer version to put in it. The "What a refusal means" entry that said "the bootstrap line" without showing it now points at that section by name.README.md— "Upgrading an installed Martha" says the same in three lines and links to the line it already holds, so its "never with the bootstrap line above" is no longer wrong for a 0.3.x reader.No version is written in the tree:
<exact version>stays a placeholder, as the README has it, and the registry URL is the onepackage.jsonnames, so the installer's test that holds every install line to those names reads the same value.Done when
Verified locally
run_the_installer_job.ts(CI's installer job, which holds the README's install lines to the names in its package.json): every step passed, 168/168.check:restated-values,check:marthas-names: green.check:private: nothing private on the range.check:linkscannot be made on this machine: no lychee binary. The two links added are../README.md#from-the-published-packageand#upgrading-martha, both present in their files; CI's job carries the check.