Confusing TMPDIR behavior #158

Closed
opened 2024-03-19 02:14:52 +00:00 by lunaphied · 1 comment
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
lunaphied removed the
ux
label 2024-07-07 19:34:49 +00:00
lunaphied added the
ux
label 2024-07-07 19:37:32 +00:00
Author
Owner

I believe this confusing behavior was a mistake on my part, though I'm not sure what led me to believe that this behavior was occurring as I didn't have a reproducer. For now I'm closing this but if we find a reproducer than it can be reopened.

I believe this confusing behavior was a mistake on my part, though I'm not sure what led me to believe that this behavior was occurring as I didn't have a reproducer. For now I'm closing this but if we find a reproducer than it can be reopened.
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.