|
if (!pathExists(gcRootsDir)) { |
|
createDirs(gcRootsDir); |
|
createSymlink(profilesDir, gcRootsDir + "/profiles"); |
|
} |
When running a Nix build inside a Nix build with parallel nix-build's, I often see race conditions here:
error: creating symlink from '/tmp/nix-build-foo.drv-0/nix-test/nix/var/nix/gcroots/profiles' to '/tmp/nix-build-foo.drv-0/nix-test/nix/var/nix/profiles': File exists