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

A contained check's bun install from the read-only warm cache fails on Bun 1.4.4: EACCES accessing temporary directory #12716

shipped production is serving it opened this has it

Landed in pull #12721 · run

opened this

Evidence: since the move to Bun 1.4.4 (#12545), test/check-install.test.ts > prefillInstallCache (#7543) > bun installs from a filled cache that is read-only, copying, with no registry fails on every pull's check (#12617, #12498, #12626, #12620, …) with:

bun install v1.4.4
error: EACCES accessing temporary directory. set $BUN_TMPDIR or $BUN_INSTALL

Bun 1.4.4's install moves a probe file from its temp directory into BUN_INSTALL_CACHE_DIR before it installs anything, so a cache it cannot write fails at once — TMPDIR or BUN_TMPDIR pointing at a writable directory does not help (tried). A contained check installs from the forge-filled warm cache bound read-only (checks/service.ts, cellInstall in checks/install.ts), so on 1.4.4 that install path fails in production too.

Done:

Files: src/checks/install.ts, src/checks/service.ts (and the cell's bind if an overlay is chosen), test/check-install.test.ts. Risks: do not touch src/main.ts.

commented

Reviewed pull #12721 at its head: ticked A contained check's install from the warm cache succeeds on Bun 1.4.4 and still writes nothing into the shared cache (e.g. a writable overlay or per-cell copy of the warm cache, or falling back to the cell's own cache with one log line).; The test above passes, and proves the shared cache is unchanged after the install..

Sign in to join this conversation.

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

Keyboard shortcuts

Docs