raz / site / tools / README.md

34 lines · 1.3 KiB · raw · history · last change fe3051dc

The website's ladle #

ladle.gz is the static x86-64 Linux executable built from ldiaz94/ladle at 509b9d314f6161a7430b8dc1354ba4ebe203ddb8. Its pinned dependencies are sauce 35e0c186db6b8861745c25925ca5b2489219e48d and rflate c55b37888b071e98f57dcf18b97ab31f85595e76. ladle.gz.sha256 checks the compressed file; Source.raz verifies it before unpacking the executable into build/site/.

Keeping this small build tool with the site lets Cloudflare run the existing npx wrangler deploy without a compiler or access to another private repository. It is a deployment dependency, not a raz release. Its source and tests remain in ladle's repository.

To replace it, clone ladle with its submodules and check out the chosen commit. Unpack raz's checked v0.20.0 distribution, keeping its lib/ and tools/ beside raz. From ladle's checkout:

make RAZ=/absolute/path/to/raz test fmt

From raz's checkout, pack that tested executable:

gzip -9n -c ../ladle/build/ladle > site/tools/ladle.gz
(cd site/tools && sha256sum ladle.gz > ladle.gz.sha256)
make site-source

Record the new commit and dependency pins here in the same change. The executable includes debugging paths from its build directory; another build may have a different checksum. The checksum pins this tested artifact. Gzip adds neither a filename nor a wall-clock time.

source
1# The website's ladle
2
3`ladle.gz` is the static x86-64 Linux executable built from
4`ldiaz94/ladle` at `509b9d314f6161a7430b8dc1354ba4ebe203ddb8`.
5Its pinned dependencies are sauce `35e0c186db6b8861745c25925ca5b2489219e48d`
6and rflate `c55b37888b071e98f57dcf18b97ab31f85595e76`.
7`ladle.gz.sha256` checks the compressed file; `Source.raz` verifies it
8before unpacking the executable into `build/site/`.
9
10Keeping this small build tool with the site lets Cloudflare run the
11existing `npx wrangler deploy` without a compiler or access to another
12private repository. It is a deployment dependency, not a raz release.
13Its source and tests remain in ladle's repository.
14
15To replace it, clone ladle with its submodules and check out the
16chosen commit. Unpack raz's checked v0.20.0 distribution, keeping its
17`lib/` and `tools/` beside `raz`. From ladle's checkout:
18
19```sh
20make RAZ=/absolute/path/to/raz test fmt
21```
22
23From raz's checkout, pack that tested executable:
24
25```sh
26gzip -9n -c ../ladle/build/ladle > site/tools/ladle.gz
27(cd site/tools && sha256sum ladle.gz > ladle.gz.sha256)
28make site-source
29```
30
31Record the new commit and dependency pins here in the same change.
32The executable includes debugging paths from its build directory;
33another build may have a different checksum. The checksum pins this
34tested artifact. Gzip adds neither a filename nor a wall-clock time.