mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-10-31 12:06:13 +00:00 
			
		
		
		
	Force color for build error messages (#3032)
Since we're using anstream's strip stream, we can force color output from child processes and strip them when we redirect to a file Before:  After:  Redirecting to a file correctly strips color codes.
This commit is contained in:
		
							parent
							
								
									eec49ca2b7
								
							
						
					
					
						commit
						dd55995768
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -999,6 +999,7 @@ async fn run_python_script( | |||
|         .env("PATH", modified_path) | ||||
|         // Activate the venv
 | ||||
|         .env("VIRTUAL_ENV", venv.root()) | ||||
|         .env("CLICOLOR_FORCE", "1") | ||||
|         .output() | ||||
|         .await | ||||
|         .map_err(|err| Error::CommandFailed(venv.python_executable().to_path_buf(), err)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 konsti
						konsti