| ... | @@ -1354,11 +1354,15 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { | ... | @@ -1354,11 +1354,15 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { |
| 1354 | f.cli_module = m; | 1354 | f.cli_module = m; |
| 1355 | } | 1355 | } |
| 1356 | | 1356 | |
| 1357 | // Each build.zig module needs access to each of its | 1357 | // Each build.zig module needs access to each of its dependencies' build.zig modules by |
| 1358 | // dependencies' build.zig modules by name. | 1358 | // name. Also, ensure build.zig.zon files are added to the configuration cache manifest. |
| 1359 | for (fetches) |f| { | 1359 | for (fetches) |f| { |
| 1360 | const mod = f.cli_module orelse continue; | | |
| 1361 | if (!f.have_manifest) continue; | 1360 | if (!f.have_manifest) continue; |
| | 1361 | if (config_man) |man| { |
| | 1362 | const manifest_path = try f.package_root.join(arena, Package.Manifest.basename); |
| | 1363 | _ = try man.addInputPath(manifest_path, .{}); |
| | 1364 | } |
| | 1365 | const mod = f.cli_module orelse continue; |
| 1362 | const man = &f.manifest; | 1366 | const man = &f.manifest; |
| 1363 | const dep_names = man.dependencies.keys(); | 1367 | const dep_names = man.dependencies.keys(); |
| 1364 | try mod.deps.ensureUnusedCapacity(arena, @intCast(dep_names.len)); | 1368 | try mod.deps.ensureUnusedCapacity(arena, @intCast(dep_names.len)); |