]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
When becoming other users, cd to /
authorScott Worley <scottworley@scottworley.com>
Sat, 21 Dec 2024 04:23:06 +0000 (20:23 -0800)
committerScott Worley <scottworley@scottworley.com>
Sat, 21 Dec 2024 04:23:06 +0000 (20:23 -0800)
When building '<nixpkgs>', nix-build checks to see if there is a file
literally called '<nixpkgs>' in the current directory (why?! it doesn't
use it if there is one).  If it can't access the current directory to
do this check, it fails with the error message:

  error: filesystem error: symlink_status: Permission denied [/home/alice/<nixpkgs>]

So we cd to a place where it can read the current directory.


No differences found