| ... | ... | @@ -6,11 +6,7 @@ pub fn build(b: *std.Build) void { |
| 6 | 6 | |
| 7 | 7 | const dep1 = b.dependency("other", .{}); |
| 8 | 8 | |
| 9 | | const build_runner = @import("root"); |
| 10 | | const deps = build_runner.dependencies; |
| 11 | | const zon_decls = @typeInfo(deps.packages).Struct.decls; |
| 12 | | const pkg = @field(deps.packages, zon_decls[0].name); |
| 13 | | const dep2 = b.dependencyFromBuildZig(pkg.build_zig, .{}); |
| 9 | const dep2 = b.dependencyFromBuildZig(@import("other"), .{}); |
| 14 | 10 | |
| 15 | 11 | std.debug.assert(dep1.module("add") == dep2.module("add")); |
| 16 | 12 | } |