mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Only allow reference lock files when allow-dirty is set
This commit is contained in:
parent
ea207a2eed
commit
f1c9d83697
1 changed files with 3 additions and 0 deletions
|
@ -334,6 +334,9 @@ LockedFlake lockFlake(
|
|||
}
|
||||
|
||||
try {
|
||||
if (!fetchSettings.allowDirty && lockFlags.referenceLockFilePath) {
|
||||
throw Error("reference lock file was provided, but the `allow-dirty` setting is set to false");
|
||||
}
|
||||
|
||||
// FIXME: symlink attack
|
||||
auto oldLockFile = LockFile::read(
|
||||
|
|
Loading…
Reference in a new issue