Skip to content

Regression in builtins.pathExists #8838

@lucasew

Description

@lucasew

Describe the bug

After Nix 2.13.3 something happened and broke builtins.pathExists behaviour.

Steps To Reproduce

  1. touch /tmp/test
  2. nix repl
  3. builtins.pathExists /tmp/test/.
    It will return true, should be false.

Expected behavior
It should return false.

nix-env --version output
nix-env (Nix) 2.17.0

Additional context
Nix 2.13.3 (tested on /nix/store/nd8dpdgpjkh3g3vvcjx9qdw7mjzz0l90-nix-2.13.3/bin/nix) doesn't have this issue.

This bug breaks impure overlays in nixpkgs. Relevant part of the code: https://github.com/NixOS/nixpkgs/blob/d28fdbe9742c680ec410bd70bf2962b90a374d36/pkgs/top-level/impure.nix#L40C1-L41C1

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions