Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

Relationships

#4600 deno run compile leaves the version stamp in the tree when deno compile fails

Opened by zack · 11/10/2026· Shipped 11/10/2026

scripts/compile.ts calls Deno.exit(1) inside its try block when the deno compile subprocess fails. Deno.exit ends the process at once, so the finally block never runs: the stamped version file is not restored and resources/deno is not removed. A failed build therefore leaves a dirty working tree (AGENTS.md documents restoring the stamp by hand as a workaround) and a downloaded Deno runtime under resources/deno.

Expected: a failed compile restores the version file and cleans resources/deno, then exits non-zero. Setting the exit code (or throwing) and letting the finally run, then exiting after it, would do this.

Found while planning swamp-club#4591, which moves the stamped constants to a new file but leaves this behaviour out of scope.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 13 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/10/2026, 7:18:51 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/10/2026, 6:21:46 PM

Sign in to post a ripple.