| ... | @@ -50,6 +50,7 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO | ... | @@ -50,6 +50,7 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO |
| 50 | return zigmod.Module{ | 50 | return zigmod.Module{ |
| 51 | .is_sys_lib = false, | 51 | .is_sys_lib = false, |
| 52 | .is_framework = false, | 52 | .is_framework = false, |
| | 53 | .type = .local, |
| 53 | .id = "root", | 54 | .id = "root", |
| 54 | .name = "root", | 55 | .name = "root", |
| 55 | .main = m.main, | 56 | .main = m.main, |
| ... | @@ -79,6 +80,7 @@ pub fn collect_deps(cachepath: string, mdir: std.fs.Dir, options: *CollectOption | ... | @@ -79,6 +80,7 @@ pub fn collect_deps(cachepath: string, mdir: std.fs.Dir, options: *CollectOption |
| 79 | return zigmod.Module{ | 80 | return zigmod.Module{ |
| 80 | .is_sys_lib = false, | 81 | .is_sys_lib = false, |
| 81 | .is_framework = false, | 82 | .is_framework = false, |
| | 83 | .type = .local, |
| 82 | .id = m.id, | 84 | .id = m.id, |
| 83 | .name = m.name, | 85 | .name = m.name, |
| 84 | .main = m.main, | 86 | .main = m.main, |
| ... | @@ -231,6 +233,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO | ... | @@ -231,6 +233,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO |
| 231 | return zigmod.Module{ | 233 | return zigmod.Module{ |
| 232 | .is_sys_lib = d.type == .system_lib, | 234 | .is_sys_lib = d.type == .system_lib, |
| 233 | .is_framework = d.type == .framework, | 235 | .is_framework = d.type == .framework, |
| | 236 | .type = d.type, |
| 234 | .id = try u.do_hash(options.alloc, std.crypto.hash.sha3.Sha3_384, d.path), | 237 | .id = try u.do_hash(options.alloc, std.crypto.hash.sha3.Sha3_384, d.path), |
| 235 | .name = d.path, | 238 | .name = d.path, |
| 236 | .only_os = d.only_os, | 239 | .only_os = d.only_os, |