| ... | @@ -31,7 +31,8 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO | ... | @@ -31,7 +31,8 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO |
| 31 | var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc); | 31 | var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc); |
| 32 | errdefer moduledeps.deinit(); | 32 | errdefer moduledeps.deinit(); |
| 33 | if (m.root_files.len > 0) { | 33 | if (m.root_files.len > 0) { |
| 34 | try moduledeps.append(try add_files_package(options.alloc, cachepath, "root", mdir, m.root_files)); | 34 | const builddotzig = try extras.hashFile(mdir, "build.zig", std.crypto.hash.Sha1); |
| | 35 | try moduledeps.append(try add_files_package(options.alloc, cachepath, "root_" ++ &builddotzig, mdir, m.root_files)); |
| 35 | } | 36 | } |
| 36 | try moduledeps.append(try collect_deps(cachepath, mdir, .local, options)); | 37 | try moduledeps.append(try collect_deps(cachepath, mdir, .local, options)); |
| 37 | for (m.rootdeps) |*d| { | 38 | for (m.rootdeps) |*d| { |