aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotgne22020-11-21 22:49:51 -0700
committernotgne22020-11-21 22:49:55 -0700
commit1795c8aab465606d615b56c73fe2c76112bf5ad7 (patch)
treeb49e703f08b2bd5307271239855994f8c4f3f5d9 /src
parent222b75cebaebb84f5b8d133a464feb0f19e14b9e (diff)
Build nothing if checks attribute is missing in non-flakes mode (fixes #7)
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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))
}
};