docs: point the docs at v0.5.0 and explain why a download 404s or 403s
All checks were successful
android-ci / android (pull_request) Successful in 12m20s
All checks were successful
android-ci / android (pull_request) Successful in 12m20s
README, android/README, VERIFY and the two release scripts all named v0.14.0, a version that was never tagged or released - the newest tag is v0.4.0, so the documented download URLs were dead. Align them with the version this release cuts (minor bump off v0.4.0 -> v0.5.0). VERIFY.md gains a Check 0: /releases/latest/download/... is not served by this Forgejo (404, pin the tag), and Cloudflare answers a non-browser User-Agent with 403 error code 1010 even on a correct URL (measured: browser 206, curl 206, Python-urllib 403).
This commit is contained in:
parent
4216a6731f
commit
57d1bb0bd2
5 changed files with 30 additions and 15 deletions
|
|
@ -60,6 +60,21 @@ is the code described above, and not something else.
|
|||
|
||||
---
|
||||
|
||||
## Check 0 — first, get the file, and know why a download can fail
|
||||
|
||||
Two things break a download from this host, and neither means the release is
|
||||
missing:
|
||||
|
||||
- **`/releases/latest/download/…` is not served by this Forgejo — it is a 404.**
|
||||
The GitHub habit fails here. Always pin the tag:
|
||||
`…/releases/download/v0.5.0/onionwire-x86_64-unknown-linux-gnu`.
|
||||
- **Cloudflare in front of the Forgejo rejects non-browser User-Agents.** A
|
||||
script that sends a default library UA gets `HTTP 403` with the body
|
||||
`error code: 1010` — even with a correct tag and URL. Measured against a real
|
||||
asset on this host: browser UA → `206`, `curl/8.7.1` → `206`,
|
||||
`Python-urllib/3.14` → `403`. Set a real `User-Agent` on any scripted fetch,
|
||||
or use `curl`.
|
||||
|
||||
## Check 1 — 30 seconds: what code is even in the binary
|
||||
|
||||
From a clone, on whatever commit you are interested in:
|
||||
|
|
@ -142,10 +157,10 @@ is public": *the binary I downloaded might not be that source.*
|
|||
git clone https://forgejo.siriusdevops.com/sirius/onionwire
|
||||
cd onionwire
|
||||
git fetch --tags
|
||||
scripts/verify-reproducible.sh v0.14.0
|
||||
scripts/verify-reproducible.sh v0.5.0
|
||||
```
|
||||
|
||||
Replace `v0.14.0` with the tag you are checking. You need docker; you do not
|
||||
Replace `v0.5.0` with the tag you are checking. You need docker; you do not
|
||||
need Rust, or the right glibc, or the right distro. The rebuild happens inside
|
||||
the same builder image, pinned **by digest**, that CI uses, with the source
|
||||
paths, the target path, and `SOURCE_DATE_EPOCH` all fixed by
|
||||
|
|
|
|||
Loading…
Reference in a new issue