1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

tests: Get rid of some result symlinks

Fixes

  error: cannot create symlink '/home/eelco/Dev/nix/tests/result'; already exists
This commit is contained in:
Eelco Dolstra 2021-06-25 11:17:19 +02:00
parent 08270af7fe
commit bf68c693dc
2 changed files with 5 additions and 5 deletions

View file

@ -17,10 +17,10 @@ sleep 2 # To make sure that `$(date)` will be different
# As weve cleared the cache, well have to rebuild current-time. And because
# the current time isnt the same as before, this will yield a new (different)
# realisation
nix build -f nondeterministic.nix dep2
nix build -f nondeterministic.nix dep2 --no-link
# Build something that depends both on dep1 and dep2.
# If everything goes right, we should rebuild dep2 rather than fetch it from
# the cache (because that would mean duplicating `current-time` in the closure),
# and have `dep1 == dep2`.
nix build --substituters "$REMOTE_STORE" -f nondeterministic.nix toplevel --no-require-sigs
nix build --substituters "$REMOTE_STORE" -f nondeterministic.nix toplevel --no-require-sigs --no-link