mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-27 02:52:02 +03:00
fix(mkDummySrc): remove IFD trigger by not checking if cargo lock path exists, the build will fail if it doesnt
This commit is contained in:
parent
4fe4d14281
commit
8f0b89244f
@ -168,14 +168,11 @@ let
|
|||||||
);
|
);
|
||||||
|
|
||||||
# Since we allow the caller to provide a path to *some* Cargo.lock file
|
# Since we allow the caller to provide a path to *some* Cargo.lock file
|
||||||
# we include it in our dummy build only if it was explicitly specified
|
# we include it in our dummy build only if it was explicitly specified.
|
||||||
# and the path exists.
|
|
||||||
copyCargoLock =
|
copyCargoLock =
|
||||||
if cargoLock == null
|
if cargoLock == null
|
||||||
then ""
|
then ""
|
||||||
else if pathExists cargoLock
|
else "cp ${cargoLock} $out/Cargo.lock";
|
||||||
then "cp ${cargoLock} $out/Cargo.lock"
|
|
||||||
else throw "`cargoLock` was specified but the path it points to does not exist: ${cargoLock}";
|
|
||||||
in
|
in
|
||||||
runCommandLocal "dummy-src" { } ''
|
runCommandLocal "dummy-src" { } ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
|
Loading…
Reference in New Issue
Block a user