Add dedicated error message for musl install attempts (#9430)

Until https://github.com/astral-sh/uv/issues/6890 is fixed, it seems
nice to explain that we do not support it rather than the generic
message in https://github.com/astral-sh/uv/issues/9428
This commit is contained in:
Zanie Blue
2024-11-26 12:30:07 -06:00
committed by GitHub
parent c94777fc54
commit de84a897a1
2 changed files with 17 additions and 2 deletions
+4
View File
@@ -49,6 +49,10 @@ impl Libc {
_ => Ok(Self::None),
}
}
pub fn is_musl(&self) -> bool {
matches!(self, Self::Some(target_lexicon::Environment::Musl))
}
}
impl FromStr for Libc {