mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +01:00
SingleDerivedPath should be const in recursive data structures
This commit is contained in:
parent
89b495520d
commit
8fdb50761d
4 changed files with 11 additions and 11 deletions
|
|
@ -333,9 +333,9 @@ Goal::Co DerivationGoal::gaveUpOnSubstitution()
|
|||
/* The inputs must be built before we can build this goal. */
|
||||
inputDrvOutputs.clear();
|
||||
if (useDerivation) {
|
||||
std::function<void(ref<SingleDerivedPath>, const DerivedPathMap<StringSet>::ChildNode &)> addWaiteeDerivedPath;
|
||||
std::function<void(ref<const SingleDerivedPath>, const DerivedPathMap<StringSet>::ChildNode &)> addWaiteeDerivedPath;
|
||||
|
||||
addWaiteeDerivedPath = [&](ref<SingleDerivedPath> inputDrv, const DerivedPathMap<StringSet>::ChildNode & inputNode) {
|
||||
addWaiteeDerivedPath = [&](ref<const SingleDerivedPath> inputDrv, const DerivedPathMap<StringSet>::ChildNode & inputNode) {
|
||||
if (!inputNode.value.empty())
|
||||
addWaitee(worker.makeGoal(
|
||||
DerivedPath::Built {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue