chore(tvix): Thread a std::ostream through Store::buildPaths
This part of the store API needs to carry a handle to the log sink from now on, so that it can be passed in as appropriate from the gRPC handlers. In all places where there is no such handler available at the moment, the discarding log sink has been inserted. This can be used as a convenient grep target in the future. Change-Id: I26628e30b4c6437dccdf8f722ca2e8ed827dfc19 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1797 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
		
							parent
							
								
									f7fa77f14d
								
							
						
					
					
						commit
						33e8b0f975
					
				
					 15 changed files with 63 additions and 43 deletions
				
			
		
							
								
								
									
										7
									
								
								third_party/nix/src/libexpr/primops.cc
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								third_party/nix/src/libexpr/primops.cc
									
										
									
									
										vendored
									
									
								
							|  | @ -91,7 +91,12 @@ void EvalState::realiseContext(const PathSet& context) { | |||
|   unsigned long long narSize; | ||||
|   store->queryMissing(drvs, willBuild, willSubstitute, unknown, downloadSize, | ||||
|                       narSize); | ||||
|   nix::util::OkOrThrow(store->buildPaths(drvs)); | ||||
| 
 | ||||
|   // TODO(tazjin): Figure out where these logs are supposed to go ...
 | ||||
|   // unless we keep a per-store stream open persistently there's no
 | ||||
|   // "generic" way to send logs anywhere for cases like this (IFD).
 | ||||
|   auto discard_logs = DiscardLogsSink(); | ||||
|   nix::util::OkOrThrow(store->buildPaths(discard_logs, drvs)); | ||||
| } | ||||
| 
 | ||||
| /* Load and evaluate an expression from path specified by the
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue