Public: anyone can read this; the crew can change it.

Games: the forge-velocity pin's sha256 is the jar's whole digest #18198

opened this

Merged 15h 45m ago, live in production

sold/forge-velocity-pin-sha → main 0 commits

  • Merged. sold/forge-velocity-pin-sha was merged into main as 7ede9b5.

Review

Sign in to review this change.
2 files changed +5 −1
src/games/proxy_jars.ts +1 −1
@@ -36,7 +36,7 @@ export const PINS: readonly Pin[] = [
3636 {
3737 title: "forge-velocity 0.1.0",
3838 name: "forge-velocity-0.1.0-735afbbc47fd.jar",
39 sha256: "735afbbc47fd5bf2e718ab89145368e3ace48d4817a25b1bfed33a5a83e1845d",
39 sha256: "735afbbc47fdc922c130f4c86f8ef592b6f58258126e761c848ca9076b980ab6",
4040 does: "Players type /forge on any server of the network, and only they see the answer, in clean colours with Markdown drawn as chat styling. What the forge can answer without a model (help, status, servers, who is on, the address, why a join failed, what a server needs, whether it sleeps) comes at once from a small file the forge keeps on the proxy; anything else shows thinking in the action bar and comes back as one line. Yes and No are buttons.",
4141 },
4242 {
test/game-proxy-jars.test.ts +4
@@ -448,6 +448,10 @@ test("only an owner of the box commits a pinned plugin", async () => {
448448 test("what the forge pins today, each file named by its sha256", () => {
449449 expect(PINS.map((p) => p.title)).toEqual(["forge-velocity 0.1.0", "AutoStopper 3.0.0-forge.1"]);
450450 for (const p of PINS) expect(p.name).toContain(p.sha256.slice(0, 12));
451 // A whole sha256 each: a prefix spliced onto another jar's digest would name a file nobody built.
452 for (const p of PINS) expect(p.sha256).toMatch(/^[0-9a-f]{64}$/);
453 // The jar built twice from forge-velocity's source (the check in that repository), by its whole digest.
454 expect(PINS[0]!.sha256).toBe("735afbbc47fdc922c130f4c86f8ef592b6f58258126e761c848ca9076b980ab6");
451455 });
452456
453457 test("a new pin replaces the old jar of the same plugin in PLUGINS, and leaves other entries", async () => {

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs