Repository navigation
Conversation
| nrFailed, worker.store.printStorePath(drvPath))); | ||
| (nrFailed == 1 | ||
| ? "%s dependency of %s (derivation '%s') failed to build" | ||
| : "%s dependencies of %s (derivation '%s') failed to build" |
There was a problem hiding this comment.
Maybe a bit pedantic, but this message is incorrect: the failing path is not necessarily a dependency of the output (i.e. part of its closure). It could be a build-time dependency only, or it could be a runtime dependency of one of the other outputs.
A more accurate message: %s dependencies of derivation '%s' (outputs: ...) failed to build.
| describer = worker.store.printStorePath(*firstOutput); | ||
| } else { | ||
| describer = drv->name; | ||
| } |
There was a problem hiding this comment.
Instead of one arbitrary output, we could also print all outputs (concatStringsSep(", ", worker.store.printStorePathSet(outputs))).
There was a problem hiding this comment.
Another thing to consider is the CA derivation case, where we don't know the output paths in advance. We could ignore that for now though, since it's still experimental.
|
Closing in favor of a reimplementation. |
ref: https://linear.app/detsys/issue/FH-783/improve-the-build-failure-message
Motivation
Semi-regularly we have folks (internal and external) get frustrated by this error message:
...especially when that path is expected to be substitutable, and knowing the output path would let you check binary caches.
This patch does a couple things:
Here's what the new error looks like: