Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8bda4b76f | ||
|
|
fe10962c4b | ||
|
|
4dc8db6921 |
No files matched your search
+8
-1
@@ -2,6 +2,12 @@
|
||||
|
||||
## [Unreleased] - ReleaseDate
|
||||
|
||||
## [0.2.16] - 2026-03-23
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix bug that causes tarball extraction to fail
|
||||
|
||||
## [0.2.15] - 2026-03-22
|
||||
|
||||
### Changed
|
||||
@@ -182,8 +188,9 @@
|
||||
- First release
|
||||
|
||||
<!-- next-url -->
|
||||
[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.15...HEAD
|
||||
[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.16...HEAD
|
||||
|
||||
[0.2.16]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.15...v0.2.16
|
||||
[0.2.15]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.14...v0.2.15
|
||||
[0.2.14]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.13...v0.2.14
|
||||
[0.2.13]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.12...v0.2.13
|
||||
|
||||
Generated
+1
-1
@@ -3099,7 +3099,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
||||
|
||||
[[package]]
|
||||
name = "rusty-path-of-building"
|
||||
version = "0.2.15"
|
||||
version = "0.2.16"
|
||||
dependencies = [
|
||||
"ahash",
|
||||
"anyhow",
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ authors = ["meehl"]
|
||||
description = "Cross-platform runtime for Path of Building"
|
||||
repository = "https://github.com/meehl/rusty-path-of-building"
|
||||
license = "MIT"
|
||||
version = "0.2.15"
|
||||
version = "0.2.16"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
||||
|
||||
@@ -183,16 +183,7 @@ pub fn download_and_extract_tarball(
|
||||
let gz = GzDecoder::new(io::BufReader::new(tmp_file));
|
||||
let mut archive = Archive::new(gz);
|
||||
|
||||
let mut entries = archive.entries()?;
|
||||
|
||||
let root_prefix = {
|
||||
let first = entries
|
||||
.next()
|
||||
.ok_or_else(|| io::Error::new(io::ErrorKind::UnexpectedEof, "archive is empty"))??;
|
||||
first.path()?.to_string_lossy().into_owned()
|
||||
};
|
||||
|
||||
for entry_result in entries {
|
||||
for entry_result in archive.entries()? {
|
||||
let mut entry = entry_result?;
|
||||
let entry_path = entry.path()?.to_path_buf();
|
||||
let entry_str = entry_path.to_string_lossy();
|
||||
@@ -202,9 +193,9 @@ pub fn download_and_extract_tarball(
|
||||
continue;
|
||||
}
|
||||
|
||||
// Strip root prefix before matching against rules
|
||||
let relative = match entry_str.strip_prefix(root_prefix.as_str()) {
|
||||
Some(r) => r,
|
||||
// Strip root folder before matching against rules
|
||||
let relative = match entry_str.split_once('/') {
|
||||
Some((_, rest)) => rest,
|
||||
None => continue,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user