Skip to content

Commit 5765736

Browse files
committed
fix InstallArtifact opening empty string
this appears to have been a problem since 43f73af
1 parent 4cefd1b commit 5765736

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/Build/Step/InstallArtifact.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

0 commit comments

Comments
 (0)