From 5765736867f17df63740017a2a842427f046743f Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 6 Mar 2025 16:22:50 -0800 Subject: [PATCH] fix InstallArtifact opening empty string this appears to have been a problem since 43f73af3595c3174b8e67e9f2792c3774f2192e9 --- lib/std/Build/Step/InstallArtifact.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Build/Step/InstallArtifact.zig b/lib/std/Build/Step/InstallArtifact.zig index 3d404eb8ca..acf392f49f 100644 --- a/lib/std/Build/Step/InstallArtifact.zig +++ b/lib/std/Build/Step/InstallArtifact.zig @@ -189,9 +189,9 @@ fn make(step: *Step, options: Step.MakeOptions) !void { const src_dir_path = dir.source.getPath3(b, step); const full_h_prefix = b.getInstallPath(h_dir, dir.dest_rel_path); - var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.sub_path, .{ .iterate = true }) catch |err| { - return step.fail("unable to open source directory '{s}': {s}", .{ - src_dir_path.sub_path, @errorName(err), + var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.subPathOrDot(), .{ .iterate = true }) catch |err| { + return step.fail("unable to open source directory '{}': {s}", .{ + src_dir_path, @errorName(err), }); }; defer src_dir.close();