mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
buildDepsOnly: remove (now unnecessary) cargoLock check
* Previously we would manually copy over any Cargo.lock file from the source to the dummified source * Now, `mkDummySrc` will implicitly copy the file if it is present, or ignore it if missing, so this check is a bit overzealous now * Loosening this check also allows callers to sneak in their own Cargo.lock file (e.g. through a patch phase) while still avoiding IFD
This commit is contained in:
parent
b2fedd23ff
commit
6fd4d85dac
@ -28,9 +28,8 @@ let
|
||||
|
||||
path = args.src or throwMsg;
|
||||
cargoToml = path + "/Cargo.toml";
|
||||
cargoLock = path + "/Cargo.lock";
|
||||
dummySrc =
|
||||
if builtins.pathExists cargoToml && builtins.pathExists cargoLock
|
||||
if builtins.pathExists cargoToml
|
||||
then mkDummySrc args
|
||||
else throwMsg;
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user