Confusing TMPDIR behavior #158
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#158
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Confusingly, the value of
TMPDIR
used whennix build
/nix-build
is invoked seems to affect which temporary directory is used for the builds, rather than always using the daemon service'sTMPDIR
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.
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.