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
|
, buildAndTestSubdir ? null
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
|
|
||||||
assert cargoVendorDir == null && cargoLock == null -> !(args ? cargoSha256) && !(args ? cargoHash)
|
assert cargoVendorDir == null && cargoLock == null
|
||||||
-> throw "cargoSha256, cargoHash, cargoVendorDir, or cargoLock must be set";
|
-> !(args ? cargoSha256 && args.cargoSha256 != null) && !(args ? cargoHash && args.cargoHash != null)
|
||||||
|
-> throw "cargoSha256, cargoHash, cargoVendorDir, or cargoLock must be set";
|
||||||
assert buildType == "release" || buildType == "debug";
|
assert buildType == "release" || buildType == "debug";
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue