You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building Nix from a single-user installation, the build fails with the error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing
Why is it that the test fails? Even when disabling the sandbox, you still shouldn't be able to create $HOME, unless you're root, in which case, ...why are you running builds as root?
Hi, I'm not running the build as root. I described the exact steps to reproduce in the issue.
Interestingly, it wasn't reproduced on an Ubuntu 24.04 running on VirtualBox, but I did reproduce it by running the exact steps on a GitHub Actions worker.
I added another way to reproduce the problem: This PR adds another GitHub Actions builder, which installs Nix with a single-user installation. It fails with this error: #11397
Describe the bug
When building Nix from a single-user installation, the build fails with the error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing
This is probably related to #8313
Steps To Reproduce
This PR adds another GitHub Actions builder, which installs Nix with a single-user installation. It fails with this error: #11397
Alternatively:
(
noamraph/nix/no-gc-auto-test
disables the gc-auto test, to overcome #11284.)Expected behavior
Build succeeds.
Actual behavior
Build fails with this error:
nix-env --version
outputnix-env (Nix) 2.24.2
Additional context
When disabling sandbox the build succeeds:
When applying a branch which uses
/sys/homeless-shelter
instead of/homeless-shelter
the build succeeds:Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: