mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-22 23:17:15 +03:00
Merge pull request #40 from yusdacra/fix/dont-check-cargo-lock
This commit is contained in:
commit
db5482bf22
@ -168,14 +168,11 @@ let
|
||||
);
|
||||
|
||||
# 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
|
||||
# and the path exists.
|
||||
# we include it in our dummy build only if it was explicitly specified.
|
||||
copyCargoLock =
|
||||
if cargoLock == null
|
||||
then ""
|
||||
else if pathExists cargoLock
|
||||
then "cp ${cargoLock} $out/Cargo.lock"
|
||||
else throw "`cargoLock` was specified but the path it points to does not exist: ${cargoLock}";
|
||||
else "cp ${cargoLock} $out/Cargo.lock";
|
||||
in
|
||||
runCommandLocal "dummy-src" { } ''
|
||||
mkdir -p $out
|
||||
|
Loading…
Reference in New Issue
Block a user