Skip to content

Commit 4ea32d0

Browse files
committed
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
1 parent e4e4063 commit 4ea32d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libstore/build/derivation-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
147147
co_await await(std::move(waitees));
148148
}
149149
if (nrFailed != 0) {
150-
co_return doneFailure({BuildResult::Failure::DependencyFailed, "resolution failed"});
150+
co_return doneFailure({BuildResult::Failure::DependencyFailed, "Build failed due to failed dependency"});
151151
}
152152

153153
if (resolutionGoal->resolvedDrv) {

tests/functional/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ test "$status" = 1
184184
if isDaemonNewer "2.29pre"; then
185185
<<<"$out" grepQuiet -E "error: Cannot build '.*-x4\\.drv'"
186186
<<<"$out" grepQuiet -E "Reason: 1 dependency failed."
187+
<<<"$out" grepQuiet -E "Build failed due to failed dependency"
187188
else
188189
<<<"$out" grepQuiet -E "error: 1 dependencies of derivation '.*-x4\\.drv' failed to build"
189190
fi

0 commit comments

Comments
 (0)