| ... | @@ -118,7 +118,7 @@ pub fn collect_deps(dir: []const u8, mpath: []const u8, comptime options: Collec | ... | @@ -118,7 +118,7 @@ pub fn collect_deps(dir: []const u8, mpath: []const u8, comptime options: Collec |
| 118 | error.FileNotFound => { | 118 | error.FileNotFound => { |
| 119 | if (d.main.len > 0 or d.c_include_dirs.len > 0 or d.c_source_files.len > 0) { | 119 | if (d.main.len > 0 or d.c_include_dirs.len > 0 or d.c_source_files.len > 0) { |
| 120 | var mod_from = try u.Module.from(d); | 120 | var mod_from = try u.Module.from(d); |
| 121 | mod_from.id = try u.random_string(48); | 121 | if (mod_from.id.len == 0) mod_from.id = try u.random_string(48); |
| 122 | mod_from.clean_path = u.trim_prefix(moddir, dir)[1..]; | 122 | mod_from.clean_path = u.trim_prefix(moddir, dir)[1..]; |
| 123 | if (mod_from.is_for_this()) try moduledeps.append(mod_from); | 123 | if (mod_from.is_for_this()) try moduledeps.append(mod_from); |
| 124 | } | 124 | } |