Skip to content

nix: use TMPDIR for cache locations#126

Open
jakubgs wants to merge 1 commit into
masterfrom
nix/fix-macos-cache-dir
Open

nix: use TMPDIR for cache locations#126
jakubgs wants to merge 1 commit into
masterfrom
nix/fix-macos-cache-dir

Conversation

@jakubgs
Copy link
Copy Markdown
Member

@jakubgs jakubgs commented Jun 1, 2026

Hardcoding /tmp is fine for Linux but on macOS hosts due to lackluster sandboxing weird errors due to corrupted Nim cache can appear.

Error: cannot open '/tmp/nim/koch_d/@psystem@sexceptions.nim.c'

@jakubgs jakubgs requested a review from tersec June 1, 2026 10:53
@jakubgs jakubgs self-assigned this Jun 1, 2026
@jakubgs jakubgs force-pushed the nix/fix-macos-cache-dir branch 2 times, most recently from 6ca4bd4 to f670d57 Compare June 1, 2026 11:44
Hardcoding /tmp is fine for Linux but on macOS hosts due to lackluster
sandboxing weird errors due to corrupted Nim cache can appear.

Error: cannot open '/tmp/nim/koch_d/@Psystem@sexceptions.nim.c'

Signed-off-by: Jakub Sokołowski <jakub@status.im>
@jakubgs jakubgs force-pushed the nix/fix-macos-cache-dir branch from f670d57 to 7498593 Compare June 1, 2026 11:46
jakubgs added a commit to status-im/nimbus-eth2 that referenced this pull request Jun 2, 2026
Hardcoding `/tmp` is fine for Linux but on macOS hosts due to lackluster
sandboxing weird errors due to corrupted Nim cache can appear.

Error: cannot open '/tmp/nim/koch_d/@Psystem@sexceptions.nim.c'

Updating NBS to include the same fix for Nim build.
status-im/nimbus-build-system#126

Signed-off-by: Jakub Sokołowski <jakub@status.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants