installer 2.0.2: the highest version is read through Forgejo's last-page link (#149) #150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "venus/149-installer-tag-pages"
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 macula-io/martha#149 (gap 1 of the stranger run).
With no version named, the installer refused every install:
lists more tags than one page; name a version. Forgejo's registry sendsrel="next"on every tag page, the last one included, and that next page is{"tags":[]}with no link.What changes:
LIMITS.tagListPages(10) pages; past that it refuses by name, as before.installer-v2.0.2tag publishes it after landing, before the next Martha release pins it.Proof:
lists more tags than one page) and this branch reads0.4.1.>and-1, never following the link, and no refusal of an off-list link.Drops-test.With no version named, the installer refused every install: "lists more tags than one page; name a version". Forgejo's registry sends `Link: <...?last=<tag>>; rel="next"` on every tag list page, the last one included, and that next page is `{"tags":[]}` with no link. The installer README promises the highest version when none is named. The reader now follows the next link page by page, each page capped as before and at most LIMITS.tagListPages (10) pages, past which it still refuses by name. A next link is followed only on this package's own tag list on this registry; any other target is refused unread. The fake registry gains laterPages, linkOnLastPage (Forgejo's shape) and nextLinkTo. installer/package.json and npm-shrinkwrap.json go 2.0.1 -> 2.0.2 for the installer-v tag. Refs macula-io/martha#149