File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -784,7 +784,7 @@ impl CacheBucket {
784
784
Self :: SourceDistributions => "sdists-v6" ,
785
785
Self :: FlatIndex => "flat-index-v2" ,
786
786
Self :: Git => "git-v0" ,
787
- Self :: Interpreter => "interpreter-v3 " ,
787
+ Self :: Interpreter => "interpreter-v4 " ,
788
788
// Note that when bumping this, you'll also need to bump it
789
789
// in crates/uv/tests/cache_clean.rs.
790
790
Self :: Simple => "simple-v14" ,
Original file line number Diff line number Diff line change 1
1
use std:: borrow:: Cow ;
2
+ use std:: env:: consts:: ARCH ;
2
3
use std:: io;
3
4
use std:: path:: { Path , PathBuf } ;
4
5
use std:: process:: { Command , ExitStatus } ;
@@ -746,7 +747,9 @@ impl InterpreterInfo {
746
747
747
748
let cache_entry = cache. entry (
748
749
CacheBucket :: Interpreter ,
749
- "" ,
750
+ // Shard interpreter metadata by host architecture, to avoid cache collisions when
751
+ // running universal binaries under Rosetta.
752
+ ARCH ,
750
753
// We use the absolute path for the cache entry to avoid cache collisions for relative
751
754
// paths. But we don't to query the executable with symbolic links resolved.
752
755
format ! ( "{}.msgpack" , cache_digest( & absolute) ) ,
You can’t perform that action at this time.
0 commit comments