You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.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));
136
-
}
137
-
138
-
for extra_arg in extra_build_args {
139
-
check_command.arg(extra_arg);
140
-
}
141
-
142
-
let check_status = check_command.status().await?;
143
-
144
-
match check_status.code(){
145
-
Some(0) => (),
146
-
a => returnErr(CheckDeploymentError::NixCheckExit(a)),
147
-
};
148
-
149
-
Ok(())
150
-
}
151
-
152
-
#[derive(Error,Debug)]
153
-
pubenumGetDeploymentDataError{
154
-
#[error("Failed to execute nix eval command: {0}")]
155
-
NixEval(std::io::Error),
156
-
#[error("Failed to read output from evaluation: {0}")]
157
-
NixEvalOut(std::io::Error),
158
-
#[error("Evaluation resulted in a bad exit code: {0:?}")]
159
-
NixEvalExit(Option<i32>),
160
-
#[error("Error converting evaluation output to utf8: {0}")]
161
-
DecodeUtf8(#[from] std::string::FromUtf8Error),
162
-
#[error("Error decoding the JSON from evaluation: {0}")]
163
-
DecodeJson(#[from] serde_json::error::Error),
164
-
#[error("Impossible happened: profile is set but node is not")]
165
-
ProfileNoNode,
166
-
}
167
-
168
-
/// Evaluates the Nix in the given `repo` and return the processed Data from it
.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));
41
+
};
42
+
43
+
for extra_arg in extra_build_args {
44
+
check_command.arg(extra_arg);
45
+
}
46
+
47
+
let check_status = check_command.status().await?;
48
+
49
+
match check_status.code(){
50
+
Some(0) => (),
51
+
a => returnErr(CheckDeploymentError::NixCheckExit(a)),
52
+
};
53
+
54
+
Ok(())
55
+
}
56
+
57
+
#[derive(Error,Debug)]
58
+
pubenumGetDeploymentDataError{
59
+
#[error("Failed to execute nix eval command: {0}")]
60
+
NixEval(std::io::Error),
61
+
#[error("Failed to read output from evaluation: {0}")]
62
+
NixEvalOut(std::io::Error),
63
+
#[error("Evaluation resulted in a bad exit code: {0:?}")]
64
+
NixEvalExit(Option<i32>),
65
+
#[error("Error converting evaluation output to utf8: {0}")]
66
+
DecodeUtf8(#[from] std::string::FromUtf8Error),
67
+
#[error("Error decoding the JSON from evaluation: {0}")]
68
+
DecodeJson(#[from] serde_json::error::Error),
69
+
#[error("Impossible happened: profile is set but node is not")]
70
+
ProfileNoNode,
71
+
}
72
+
73
+
/// Evaluates the Nix in the given `repo` and return the processed Data from it
0 commit comments