[Nix#9585] builtins.pathExists returns false for symlink to directory suffixed with "/." #88
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#88
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#9585
Describe the bug
If you create a symlink to a directory and then add "/." to the symlink path, that is a path to that directory. The OS recognizes that as a path to the directory. However, builtins.pathExists returns false.
Steps To Reproduce
Expected behavior
It should return true.
nix-env --version
outputnix-env (Nix) 2.18.1
Additional context
Related: https://github.com/NixOS/nix/issues/8838 (Regression in builtins.pathExists)
This similarly breaks overlays if your
<nixpkgs-overlays>
is a symlink to a directory (e.g. a symlink in /etc pointing into /nix).