* 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.
This commit is contained in:
		
							parent
							
								
									f8e54b7874
								
							
						
					
					
						commit
						5679041132
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue