diff --git a/lix/libstore/build/local-derivation-goal.cc b/lix/libstore/build/local-derivation-goal.cc index 084b1d6d8..6acc2372f 100644 --- a/lix/libstore/build/local-derivation-goal.cc +++ b/lix/libstore/build/local-derivation-goal.cc @@ -229,6 +229,9 @@ retry: auto & localStore = getLocalStore(); if (localStore.config().storeDir != localStore.config().realStoreDir.get()) { #if __linux__ + if (!useChroot) { + printTaggedWarning("auto-enabling the sandbox due to using a diverted store"); + } useChroot = true; #else throw Error("building using a diverted store is not supported on this platform");