Confusing TMPDIR behavior #158

Open
opened 2024-03-19 02:14:52 +00:00 by lunaphied · 0 comments
Owner

Confusingly, the value of TMPDIR used when nix build/nix-build is invoked seems to affect which temporary directory is used for the builds, rather than always using the daemon service's TMPDIR environment variable.

This isn't ideal as it (doesn't seem to) match my memory of how later versions of Nix handle this and it's likely desirable to specify this globally to force temporary build files into directories specifically meant for that usage.

Whatever is happening here, it requires better documentation at the very least, as Nix's existing documentation around how TMPDIR handling works is very minimal and not much aid.

Confusingly, the value of `TMPDIR` used when `nix build`/`nix-build` is invoked seems to affect which temporary directory is used for the builds, rather than always using the daemon service's `TMPDIR` environment variable. This isn't ideal as it (doesn't seem to) match my memory of how later versions of Nix handle this and it's likely desirable to specify this globally to force temporary build files into directories specifically meant for that usage. Whatever is happening here, it requires better documentation at the very least, as Nix's existing documentation around how TMPDIR handling works is very minimal and not much aid.
lunaphied added the
ux
label 2024-03-19 02:14:52 +00:00
puck was assigned by lunaphied 2024-03-19 02:14:52 +00:00
qyriad added the
docs
label 2024-04-29 13:01:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#158
No description provided.