authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-06 16:22:50-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-07 15:21:40-05:00
log5765736867f17df63740017a2a842427f046743f
treeae33a332ab214143f82eca8d6db42c717e91490a
parent4cefd1bd1bac7059f7e00162a579f659e5f59412

fix InstallArtifact opening empty string

this appears to have been a problem since 43f73af3595c3174b8e67e9f2792c3774f2192e9

1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Build/Step/InstallArtifact.zig+3-3
......@@ -189,9 +189,9 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
189189 const src_dir_path = dir.source.getPath3(b, step);
190190 const full_h_prefix = b.getInstallPath(h_dir, dir.dest_rel_path);
191191
192 var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.sub_path, .{ .iterate = true }) catch |err| {
193 return step.fail("unable to open source directory '{s}': {s}", .{
194 src_dir_path.sub_path, @errorName(err),
192 var src_dir = src_dir_path.root_dir.handle.openDir(src_dir_path.subPathOrDot(), .{ .iterate = true }) catch |err| {
193 return step.fail("unable to open source directory '{}': {s}", .{
194 src_dir_path, @errorName(err),
195195 });
196196 };
197197 defer src_dir.close();