mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Improve "resolution failed" error
Previously:
error: Cannot build '/nix/store/cqc798lwy2njwbdzgd0319z4r19j2d1w-nix-manual-2.33.0pre20251101_e4e4063.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/f1kln1c6z9r7rlhj0h9shcpch7j5g1fj-nix-manual-2.33.0pre20251101_e4e4063-man
/nix/store/k65203rx5g1kcagpcz3c3a09bghcj92a-nix-manual-2.33.0pre20251101_e4e4063
error: Cannot build '/nix/store/ajk2fb6r7ijn2fc5c3h85n6zdi36xlfl-nixops-manual.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/0anr0998as8ry4hr5g3f3iarszx5aisx-nixops-manual
error: resolution failed
Now:
error: Cannot build '/nix/store/cqc798lwy2njwbdzgd0319z4r19j2d1w-nix-manual-2.33.0pre20251101_e4e4063.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/f1kln1c6z9r7rlhj0h9shcpch7j5g1fj-nix-manual-2.33.0pre20251101_e4e4063-man
/nix/store/k65203rx5g1kcagpcz3c3a09bghcj92a-nix-manual-2.33.0pre20251101_e4e4063
error: Cannot build '/nix/store/ajk2fb6r7ijn2fc5c3h85n6zdi36xlfl-nixops-manual.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/0anr0998as8ry4hr5g3f3iarszx5aisx-nixops-manual
error: Build failed due to failed dependency
This commit is contained in:
parent
e4e4063f16
commit
4ea32d0b03
2 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
|
||||||
co_await await(std::move(waitees));
|
co_await await(std::move(waitees));
|
||||||
}
|
}
|
||||||
if (nrFailed != 0) {
|
if (nrFailed != 0) {
|
||||||
co_return doneFailure({BuildResult::Failure::DependencyFailed, "resolution failed"});
|
co_return doneFailure({BuildResult::Failure::DependencyFailed, "Build failed due to failed dependency"});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resolutionGoal->resolvedDrv) {
|
if (resolutionGoal->resolvedDrv) {
|
||||||
|
|
|
||||||
|
|
@ -184,6 +184,7 @@ test "$status" = 1
|
||||||
if isDaemonNewer "2.29pre"; then
|
if isDaemonNewer "2.29pre"; then
|
||||||
<<<"$out" grepQuiet -E "error: Cannot build '.*-x4\\.drv'"
|
<<<"$out" grepQuiet -E "error: Cannot build '.*-x4\\.drv'"
|
||||||
<<<"$out" grepQuiet -E "Reason: 1 dependency failed."
|
<<<"$out" grepQuiet -E "Reason: 1 dependency failed."
|
||||||
|
<<<"$out" grepQuiet -E "Build failed due to failed dependency"
|
||||||
else
|
else
|
||||||
<<<"$out" grepQuiet -E "error: 1 dependencies of derivation '.*-x4\\.drv' failed to build"
|
<<<"$out" grepQuiet -E "error: 1 dependencies of derivation '.*-x4\\.drv' failed to build"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue