about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-12-21T18·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-12-21T18·19+0000
commit56790411323eada03bacf37fe6fd328a7c84d32a (patch)
tree26c7eda9937707deb700c0a8283ee5abc4674d73 /src
parentf8e54b7874b73891e39aff11dac2a5ceabef2f02 (diff)
* The ‘foo.drvPath’ feature was already broken in read-only mode.
  Since it's rarely used and fixing it is too much work right now,
  just document it.

Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc3
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