Merge pull request #5203 from NixOS/fix-invalid-lockfile-names

Don’t create lockfiles with an invalid path name
This commit is contained in:
Eelco Dolstra 2021-09-02 11:03:18 +02:00 committed by GitHub
commit 77ca5e951c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -566,7 +566,7 @@ void DerivationGoal::tryToBuild()
lockFiles.insert(worker.store.Store::toRealPath(*i.second.second)); lockFiles.insert(worker.store.Store::toRealPath(*i.second.second));
else else
lockFiles.insert( lockFiles.insert(
worker.store.Store::toRealPath(drvPath) + "!" + i.first worker.store.Store::toRealPath(drvPath) + "." + i.first
); );
} }
} }