Add filter for install_registry_source_dist_cached on Gentoo (#3071)

Closes https://github.com/astral-sh/uv/issues/3051.
This commit is contained in:
Charlie Marsh 2024-04-16 15:07:48 -04:00 committed by GitHub
parent 8e37625005
commit dd09de2d70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1482,13 +1482,18 @@ fn install_registry_source_dist_cached() -> Result<()> {
parent.create_dir_all()?;
let venv = create_venv(&parent, &context.cache_dir, "3.12");
let filters = if cfg!(windows) {
let filters: Vec<(&str, &str)> = if cfg!(windows) {
// On Windows, the number of files removed is different.
[("Removed 615 files", "Removed 616 files")]
.into_iter()
.chain(context.filters())
.collect()
} else {
context.filters()
// For some Linux distributions, like Gentoo, the number of files removed is different.
[("Removed 614 files", "Removed 616 files")]
.into_iter()
.chain(context.filters())
.collect()
};
uv_snapshot!(filters, Command::new(get_bin())
.arg("clean")