build-rust-package: cargoSha256 and cargoHash must not be null
This commit is contained in:
parent
64a83a9b83
commit
7d8f9ee62e
1 changed files with 3 additions and 2 deletions
|
@ -52,8 +52,9 @@
|
|||
, buildAndTestSubdir ? null
|
||||
, ... } @ args:
|
||||
|
||||
assert cargoVendorDir == null && cargoLock == null -> !(args ? cargoSha256) && !(args ? cargoHash)
|
||||
-> throw "cargoSha256, cargoHash, cargoVendorDir, or cargoLock must be set";
|
||||
assert cargoVendorDir == null && cargoLock == null
|
||||
-> !(args ? cargoSha256 && args.cargoSha256 != null) && !(args ? cargoHash && args.cargoHash != null)
|
||||
-> throw "cargoSha256, cargoHash, cargoVendorDir, or cargoLock must be set";
|
||||
assert buildType == "release" || buildType == "debug";
|
||||
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue