From f84befd494dbbcd6f76845456103169acc18b253 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 9 Apr 2021 01:22:00 -0700 Subject: [PATCH] util/module- compare based on id too --- src/util/module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/module.zig b/src/util/module.zig index de3236ccba21053361663521ef285b8a04c58481..2dde7b326e6b6617b047dbf13c38319997b8ee87 100644 --- a/src/util/module.zig +++ b/src/util/module.zig @@ -41,7 +41,7 @@ pub const Module = struct { } pub fn eql(self: Module, another: Module) bool { - return std.mem.eql(u8, self.clean_path, another.clean_path); + return std.mem.eql(u8, self.id, another.id) or std.mem.eql(u8, self.clean_path, another.clean_path); } pub fn get_hash(self: Module, cdpath: []const u8) ![]const u8 { -- 2.54.0