diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/primops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 89e215f3b888..ca7766487cd4 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -356,6 +356,7 @@ static void prim_derivationStrict(EvalState & state, Value * * args, Value & v) inputs to ensure that they are available when the builder runs. */ if (path.at(0) == '=') { + /* !!! This doesn't work if readOnlyMode is set. */ PathSet refs; computeFSClosure(*store, string(path, 1), refs); foreach (PathSet::iterator, j, refs) { drv.inputSrcs.insert(*j); @@ -377,7 +378,7 @@ static void prim_derivationStrict(EvalState & state, Value * * args, Value & v) /* Handle derivation contexts returned by ‘builtins.storePath’. */ else if (isDerivation(path)) - drv.inputDrvs[path] = store->queryDerivationOutputNames(path); + drv.inputDrvs[path] = store->queryDerivationOutputNames(path); /* Otherwise it's a source file. */ else |