funtional/tarball.sh fails when TMPDIR is unset #1035

Open
opened 2025-11-17 00:09:15 +00:00 by xokdvium · 2 comments

Describe the bug

Functional tests fail when TMPDIR is unset.

Steps To Reproduce

unset TMPDIR
just setup
just build
just install
just test
+(tarball.sh:31) nix-build -o /tmp/nix-test/tarball/result -E 'import (fetchTarball { url = "file:///does-not-exist/must-remain-unused//tmp/nix-test/tarball/tarball.tar"; sha256 = "sha256-PRgXPIzueCAIFHesj5pSLlDYbJsrGmUD8B9gpbs9p9Q="; })'
++(tarball.sh:36) mktemp -d
+(tarball.sh:36) export HOME=/tmp/tmp.0S4oIlI3Xo
+(tarball.sh:36) HOME=/tmp/tmp.0S4oIlI3Xo
tarball.sh: line 37: TMPDIR: unbound variable

Expected behavior

Test suite passes locally even when TMPDIR is unset.

Additional context

fails on fb4cc15f39

## Describe the bug Functional tests fail when TMPDIR is unset. ## Steps To Reproduce ``` unset TMPDIR just setup just build just install just test ``` ``` +(tarball.sh:31) nix-build -o /tmp/nix-test/tarball/result -E 'import (fetchTarball { url = "file:///does-not-exist/must-remain-unused//tmp/nix-test/tarball/tarball.tar"; sha256 = "sha256-PRgXPIzueCAIFHesj5pSLlDYbJsrGmUD8B9gpbs9p9Q="; })' ++(tarball.sh:36) mktemp -d +(tarball.sh:36) export HOME=/tmp/tmp.0S4oIlI3Xo +(tarball.sh:36) HOME=/tmp/tmp.0S4oIlI3Xo tarball.sh: line 37: TMPDIR: unbound variable ``` ## Expected behavior Test suite passes locally even when TMPDIR is unset. ## Additional context fails on fb4cc15f397f82d3e13538b960a136c02a6deac2
Owner

sounds like a good candidate for migration to functional2?

sounds like a good candidate for migration to functional2?

could alternatively be ported.
Am currently lacking capacities to do it myself, but anyone who wants to take a look at this can feel free to reach out to me if issues occur

could alternatively be ported. Am currently lacking capacities to do it myself, but anyone who wants to take a look at this can feel free to reach out to me if issues occur
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
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#1035
No description provided.