mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-10-31 12:06:13 +00:00 
			
		
		
		
	Store source distribution directly in the cache (#1116)
I want to move towards using the archive bucket exclusively for wheels. We never overwrite source distributions, so there's no need to symlink them.
This commit is contained in:
		
							parent
							
								
									77351c7874
								
							
						
					
					
						commit
						67b41427cc
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -766,9 +766,11 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> { | |||
|         drop(span); | ||||
| 
 | ||||
|         // Persist the unzipped distribution to the cache.
 | ||||
|         self.build_context | ||||
|             .cache() | ||||
|             .persist(source_dist_dir, cache_path) | ||||
|         fs_err::tokio::create_dir_all(cache_path.parent().expect("Cache entry to have parent")) | ||||
|             .await | ||||
|             .map_err(Error::CacheWrite)?; | ||||
|         fs_err::tokio::rename(&source_dist_dir, &cache_path) | ||||
|             .await | ||||
|             .map_err(Error::CacheWrite)?; | ||||
| 
 | ||||
|         Ok(cache_path) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Charlie Marsh
						Charlie Marsh