The feed is about to name usemagpie.ai's copy of each release file on
Cloudflare R2, with the file's github.com address beside it (`github`).
The app, `magpie update` and install.sh now try, in order: the feed's
url; github.com's address (Asset.GitHub), through the user's mirror when
one is set (a mirror is still only put before a github.com address); then
GitHub's API route, looked up from the github.com address, never through
a mirror. A route is left once it answers busy, or for the last tries
after connections that broke. The error names each route that failed.
Every file is checked against the feed's SHA-256 as before.
Run:
- mote: go test -count=1 ./internal/update ok; gofmt -l clean; go vet,
GOOS=linux go vet -tags nogui, GOOS=windows go vet of ./internal/update ok.
- wsl (magpie-desktop): go test ./internal/update ok; node --test
site/install.test.mjs ok.
- mote: node --test site/*.test.mjs 104/104.
- win-run: go test ./internal/update has one red, TestPackagedByDpkg,
the same on origin/main 82ca554be (#4603).
Broken by hand: toGitHub forced false, five new Go tests red
(TestDownloadGoesToGitHubWhenTheSiteIsBusy and the four beside it);
install.sh's github.com step skipped, two new install tests red.
Not tried: a real update against R2 (the site change is the next commit).