Fix tar by temporarily using a fork (#358)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-09-10 16:06:22 +10:00 committed by GitHub
parent 0c6687455f
commit a94d83f0d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 13 deletions

24
Cargo.lock generated
View file

@ -80,6 +80,7 @@ name = "binstall"
version = "0.0.0" version = "0.0.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"binstall-tar",
"bytes", "bytes",
"bzip2", "bzip2",
"cargo_toml", "cargo_toml",
@ -108,7 +109,6 @@ dependencies = [
"serde_json", "serde_json",
"strum", "strum",
"strum_macros", "strum_macros",
"tar",
"tempfile", "tempfile",
"thiserror", "thiserror",
"tinytemplate", "tinytemplate",
@ -121,6 +121,17 @@ dependencies = [
"zstd", "zstd",
] ]
[[package]]
name = "binstall-tar"
version = "0.4.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "01db907e07c37309ea816c183ffe548daaa66ef640a291408f232d6ca4089dbb"
dependencies = [
"filetime",
"libc",
"xattr",
]
[[package]] [[package]]
name = "bitflags" name = "bitflags"
version = "1.3.2" version = "1.3.2"
@ -1819,17 +1830,6 @@ dependencies = [
"unicode-ident", "unicode-ident",
] ]
[[package]]
name = "tar"
version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6"
dependencies = [
"filetime",
"libc",
"xattr",
]
[[package]] [[package]]
name = "tempfile" name = "tempfile"
version = "3.3.0" version = "3.3.0"

View file

@ -38,7 +38,11 @@ serde-tuple-vec-map = "1.0.1"
serde_json = "1.0.83" serde_json = "1.0.83"
strum = "0.24.1" strum = "0.24.1"
strum_macros = "0.24.3" strum_macros = "0.24.3"
tar = "0.4.38" # Use a fork here since we need PAX support, but the upstream
# does not hav the PR merged yet.
#
#tar = "0.4.38"
tar = { package = "binstall-tar", version = "0.4.39" }
tempfile = "3.3.0" tempfile = "3.3.0"
thiserror = "1.0.32" thiserror = "1.0.32"
tinytemplate = "1.2.1" tinytemplate = "1.2.1"