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
Before, something like
nativeBuildInputs = [
(runCommand "dep" { meta.description = "Dep"; } "")
];
would cause an eval warning without failing CI
After this change, CI ensures that when evaluating the set of packages
that don't have internally disallowed problem kinds, no such problem
kinds are present.
if (( chunkSize * chunkCount != attrCount )); then
211
214
# A final incomplete chunk would mess up the stats, don't include it
@@ -225,13 +228,15 @@ let
225
228
startEpoch=$(date +%s)
226
229
227
230
# The first eval evaluates only attributes that are not disallowed for internal Nixpkgs use, ensuring that they don't depend on disallowed attributes
228
-
# Because the first eval doesn't evaluate the disallowed attributes themselves, but we still want to check that they don't fail evaluation, we evaluate them separately in a second eval
231
+
# It also uses "warn" as the default problem handler for internally disallowed problem kinds, which ensures no such warnings are thrown at all, because any stderr output fails CI.
232
+
# Because the first eval doesn't evaluate the disallowed attributes themselves, but we still want to check that they don't fail evaluation, we evaluate them separately in a second eval.
233
+
# The second eval uses "ignore" as the default problem handler for internally disallowed problem kinds, because we don't care about transitive warnings then.
229
234
# The reason we need two evals is because we want disallowed attributes to be able to depend on other disallowed attributes, which inherently needs a separate Nixpkgs instantiation
230
235
# And while we could interleave that instantiation into a single eval, that would ~double memory usage for all chunks, while doing it separately doesn't
231
236
echo "Evaluating the internally allowed attributes"
0 commit comments