deps: bump astral-tokio-tar to 0.5.5 (#16004)

This commit is contained in:
William Woodruff
2025-09-23 13:46:08 -04:00
committed by GitHub
parent 268f1325ba
commit 92cd9cfb0c
4 changed files with 11 additions and 5 deletions
Generated
+2 -2
View File
@@ -207,9 +207,9 @@ dependencies = [
[[package]]
name = "astral-tokio-tar"
version = "0.5.3"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0036af73142caf1291d4ec8ed667d3a1145bd55c8189517bd5aa07b3167ae1e1"
checksum = "bc72b7a1945436d584d2ae0b3ecfe44545ab5e8e4a2b4e1a3c9aea6b60ee1faa"
dependencies = [
"filetime",
"futures-core",
+1 -1
View File
@@ -82,7 +82,7 @@ anstream = { version = "0.6.15" }
anyhow = { version = "1.0.89" }
arcstr = { version = "1.2.0" }
arrayvec = { version = "0.7.6" }
astral-tokio-tar = { version = "0.5.3" }
astral-tokio-tar = { version = "0.5.5" }
async-channel = { version = "2.3.1" }
async-compression = { version = "0.4.12", features = ["bzip2", "gzip", "xz", "zstd"] }
async-trait = { version = "0.1.82" }
+7 -1
View File
@@ -391,9 +391,15 @@ async fn build_impl(
let help = if let Error::Extract(uv_extract::Error::Tar(err)) = &err {
// TODO(konsti): astral-tokio-tar should use a proper error instead of
// encoding everything in strings
// NOTE(ww): We check for both messages below because the both indicate
// different external extraction scenarios; the first is for any
// absolute path outside of the target directory, and the second
// is specifically for symlinks that point outside.
if err.to_string().contains("/bin/python")
&& std::error::Error::source(err).is_some_and(|err| {
err.to_string().ends_with("outside of the target directory")
let err = err.to_string();
err.ends_with("outside of the target directory")
|| err.ends_with("external symlinks are not allowed")
})
{
Some(
+1 -1
View File
@@ -2078,7 +2078,7 @@ fn venv_included_in_sdist() -> Result<()> {
× Failed to build `[TEMP_DIR]/`
├─▶ Invalid tar file
├─▶ failed to unpack `[CACHE_DIR]/sdists-v9/[TMP]/python`
╰─▶ symlink destination for [PYTHON-3.12] is outside of the target directory
╰─▶ symlink path `[PYTHON-3.12]` is absolute, but external symlinks are not allowed
help: This file seems to be part of a virtual environment. Virtual environments must be excluded from source distributions.
");