[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Don't use nix-store --add in tests
- Subject: Don't use nix-store --add in tests
- From: Chris Warburton
- Date: Fri, 13 Oct 2017 13:07:02 +0100
- Resolution: fixed
- State: resolved
inNixedDir calls 'nix-store --add'. This can cause problems, since the
output doesn't get picked up by the Nix garbage collector as a
reference, i.e. we might have derivation A which depends on B and C,
where C is the result of `nix-store --add`. As long as A is "alive", the
garbage collector won't delete B, but it might still delete C since it
doesn't realise that A needs it.