Files
LLeMbas-CLI/tests/fixtures/release-version.json
T
HomerandClaude Opus 5.5 22368bec1a The updater stays in its major, keeps a version chosen, and waits on silence (S3, S4, S5, S7, S22)
- check() picks the newest release of the running major; a later one is
  named (major) and installed only by name. lembas update and the TUI say so.
- update.json held: set by lembas update vX and --rollback, cleared by a
  plain lembas update; autoUpdate skips while it is set.
- The fetcher's limit is 30 s of silence (waiting, or between two pieces),
  not 30 s in all.
- installTag returns a listing failure; lembas update prints messages, not
  stacks.
- get.sh's version_line_ok and the updater's versionLineRefusal: a signed
  list must name the version tagged. tests/fixtures/release-version.json is
  run against both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 07:48:22 +00:00

14 lines
1.5 KiB
JSON

{
"about": "A release's SHA256SUMS names its version (`# lembas X.Y.Z`). One rule, two implementations: the updater (src/update/index.ts versionLineRefusal) and get.sh (version_line_ok), both tested against these cases. `listed`: the version line's value, null when there is none; `verify`: signature (the default) or checksum; `ok`: whether the release may go on.",
"cases": [
{ "about": "Signed, naming the version tagged.", "verify": "signature", "tag": "v2.1.0", "listed": "2.1.0", "ok": true },
{ "about": "Signed, naming no version: refused (an older release's signed list under a newer tag).", "verify": "signature", "tag": "v2.1.0", "listed": null, "ok": false },
{ "about": "Signed, naming another version.", "verify": "signature", "tag": "v2.1.0", "listed": "2.0.3", "ok": false },
{ "about": "A beta.", "verify": "signature", "tag": "v2.2.0-beta.4", "listed": "2.2.0-beta.4", "ok": true },
{ "about": "A beta's list under its release's tag.", "verify": "signature", "tag": "v2.2.0", "listed": "2.2.0-beta.4", "ok": false },
{ "about": "Checksum only, naming no version: taken (a source of your own may not write the line).", "verify": "checksum", "tag": "v2.1.0", "listed": null, "ok": true },
{ "about": "Checksum only, naming another version: never.", "verify": "checksum", "tag": "v2.1.0", "listed": "1.9.0", "ok": false },
{ "about": "Checksum only, naming the version.", "verify": "checksum", "tag": "v2.1.0", "listed": "2.1.0", "ok": true }
]
}