[Nix#9579] Permission denied error when building symlink derivation #195
Labels
No labels
Area/build-packaging
Area/evaluator
Area/flakes
Area/profiles
Area/remote-builds
Area/repl
Area/store
bug
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
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#195
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?
Upstream-Issue: NixOS/nix#9579
Describe the bug
My apologies if this is already fixed on master branch, but I couldn't identify any particular issue or PR which describes this issue.
Nix 1.19.2 fails to build a derivation containing a symlink to store path.
Steps To Reproduce
The error message is:
Expected behavior
I expected both derivations to build and for the resulting store paths to be resolvable symlinks.
This is what happens with nix-2.18.1:
nix-env --version
outputThis is the
nixUnstable
package, corresponding to revision 2c7f3c0fb7c08a0814627611d9d7d45ab6d75335 of nixpkgs.Additional context
Introduced by
You might ask, why build such a silly derivation? Well, it's how
mkOutOfStoreSymlink
works under home-manager.See: https://github.com/nix-community/home-manager/issues/4692
Priorities
Add 👍 to issues you find important.
@xenua reported this reproduces on lix
meow
this smells like lazy trees, even though it's in sandbox setup. the symlink changes made in libutil to get lazy trees to work have been pervasive
purported fix PR although it does not look like the PR was going super well... https://github.com/NixOS/nix/pull/9723
fixed by https://gerrit.lix.systems/c/lix/+/829