Skip to content

std.tar: fix unconditional error return#19126

Merged
andrewrk merged 2 commits intoziglang:masterfrom
ianic:tar_case_sensitive
Feb 29, 2024
Merged

std.tar: fix unconditional error return#19126
andrewrk merged 2 commits intoziglang:masterfrom
ianic:tar_case_sensitive

Conversation

@ianic
Copy link
Contributor

@ianic ianic commented Feb 29, 2024

Fix regression made by previous PR #19081

Fixes #19124

@jacobly0 jacobly0 enabled auto-merge (rebase) February 29, 2024 01:13
Copy link
Member

@jacobly0 jacobly0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following through with a fix!

Just to pass ci of regression fix ziglang#19126.
I'll return to this later.
Currently can't reproduce on my Windows wm, here I'm failing on symlink creation
in ci fails later in the process.
auto-merge was automatically disabled February 29, 2024 07:01

Head branch was pushed to by a user without write access

@squeek502
Copy link
Member

squeek502 commented Feb 29, 2024

I can reproduce the Windows failure, and it is unrelated to tar. Windows symlink creation currently mishandles / path separators in relative targets. Can reproduce the unreachable with just this:

test "symlink target with /" {
    var tmp = std.testing.tmpDir(.{});
    defer tmp.cleanup();

    try tmp.dir.symLink("../file", "symlink", .{});

    _ = try tmp.dir.statFile("symlink");
}

Will have a fix shortly. This can be merged in the meantime.

@andrewrk
Copy link
Member

I'll merge since @squeek502 is on it. But note that standard process is to open an issue to track the disabled test, then link to the issue in the code that disables the test.

@andrewrk andrewrk merged commit af06584 into ziglang:master Feb 29, 2024
RossComputerGuy pushed a commit to ExpidusOS-archive/zig that referenced this pull request Mar 20, 2024
Just to pass ci of regression fix ziglang#19126.
I'll return to this later.
Currently can't reproduce on my Windows wm, here I'm failing on symlink creation
in ci fails later in the process.
@ianic ianic deleted the tar_case_sensitive branch April 4, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression] zig fetch fails to unpack tarball

4 participants