Skip to content

Commit

Permalink
Ignore directories when finding Zig executable
Browse files Browse the repository at this point in the history
  • Loading branch information
futsuuu authored and Techatrix committed Mar 9, 2025
1 parent e67dda0 commit fedbf31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/configuration.zig
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ pub fn findZig(allocator: std.mem.Allocator) error{OutOfMemory}!?[]const u8 {
const stat = file.stat() catch break :stat_failed;
if (stat.kind == .directory) {
logger.warn("ignoring entry in PATH '{s}' because it is a directory", .{full_path});
continue;
}
}

Expand Down

0 comments on commit fedbf31

Please sign in to comment.