mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
fix top level in tar file
This commit is contained in:
parent
a0ec4e270e
commit
d7ae60a549
1 changed files with 2 additions and 1 deletions
|
|
@ -546,7 +546,8 @@ fn runResource(
|
||||||
// directory.
|
// directory.
|
||||||
f.computed_hash = try computeHash(f, pkg_path, filter);
|
f.computed_hash = try computeHash(f, pkg_path, filter);
|
||||||
|
|
||||||
break :blk if (unpack_result.root_dir.len > 0)
|
const dot_root_dir = unpack_result.root_dir.len == 1 and unpack_result.root_dir[0] == '.';
|
||||||
|
break :blk if (unpack_result.root_dir.len > 0 and !dot_root_dir)
|
||||||
try fs.path.join(arena, &.{ tmp_dir_sub_path, unpack_result.root_dir })
|
try fs.path.join(arena, &.{ tmp_dir_sub_path, unpack_result.root_dir })
|
||||||
else
|
else
|
||||||
tmp_dir_sub_path;
|
tmp_dir_sub_path;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue