diff options
author | notgne2 | 2020-11-21 22:49:51 -0700 |
---|---|---|
committer | notgne2 | 2020-11-21 22:49:55 -0700 |
commit | 1795c8aab465606d615b56c73fe2c76112bf5ad7 (patch) | |
tree | b49e703f08b2bd5307271239855994f8c4f3f5d9 /src/main.rs | |
parent | 222b75cebaebb84f5b8d133a464feb0f19e14b9e (diff) |
Build nothing if checks attribute is missing in non-flakes mode (fixes #7)
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7d7fcf9..7261965 100644 --- a/src/main.rs +++ b/src/main.rs @@ -265,7 +265,7 @@ async fn check_deployment( false => { c.arg("-E") .arg("--no-out-link") - .arg(format!("let r = import {}/.; in (if builtins.isFunction r then (r {{}}) else r).checks.${{builtins.currentSystem}}", repo)) + .arg(format!("let r = import {}/.; x = (if builtins.isFunction r then (r {{}}) else r); in if x ? checks then x.checks.${{builtins.currentSystem}} else {{}}", repo)) } }; |