aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-06-22 10:46:29 +0200
committerregnat <rg@regnat.ovh>2021-06-23 11:27:16 +0200
commit16fb7d8d95a8bc81e7df885ab4167c8a03f1dddf (patch)
treec1acfb569f858257085897a4b5f68d27a97dea63 /src/libstore/build
parent40f925b2dacb481b62d325fb41641804524a5dc8 (diff)
Display the diverging paths in case of a realisation mismatch
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/drv-output-substitution-goal.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstore/build/drv-output-substitution-goal.cc b/src/libstore/build/drv-output-substitution-goal.cc
index ec3a8d758..be270d079 100644
--- a/src/libstore/build/drv-output-substitution-goal.cc
+++ b/src/libstore/build/drv-output-substitution-goal.cc
@@ -65,9 +65,14 @@ void DrvOutputSubstitutionGoal::tryNext()
if (auto localOutputInfo = worker.store.queryRealisation(depId);
localOutputInfo && localOutputInfo->outPath != depPath) {
warn(
- "substituter '%s' has an incompatible realisation for '%s', ignoring",
+ "substituter '%s' has an incompatible realisation for '%s', ignoring.\n"
+ "Local: %s\n"
+ "Remote: %s",
sub->getUri(),
- depId.to_string());
+ depId.to_string(),
+ worker.store.printStorePath(localOutputInfo->outPath),
+ worker.store.printStorePath(depPath)
+ );
tryNext();
return;
}