Only allow reference lock files when allow-dirty is set
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user