From 8f0b89244f28f78a61b8f496a0b00c2332d3b827 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sun, 5 Jun 2022 14:04:20 +0300 Subject: [PATCH] fix(mkDummySrc): remove IFD trigger by not checking if cargo lock path exists, the build will fail if it doesnt --- lib/mkDummySrc.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/mkDummySrc.nix b/lib/mkDummySrc.nix index 37aae10..d52ce86 100644 --- a/lib/mkDummySrc.nix +++ b/lib/mkDummySrc.nix @@ -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