Closed notramo closed 1 year ago
build.zig.zon
.{ .name = "test_package", .version = "0.1.0", .dependencies = .{ .clap = .{ .url = "https://github.com/Hejsil/zig-clap/archive/refs/heads/master.tar.gz", .hash = "1220ec67bc0bab1c56c0787626b5d9229d504000b0b6dfd94df5934b1d398a7de8ba", }, }, }
section in build.zig
_ = b.dependency("clap", .{ .target = target, .optimize = optimize });
error
/home/user/.cache/zig/p/1220ec67bc0bab1c56c0787626b5d9229d504000b0b6dfd94df5934b1d398a7de8ba/build.zig:4:6: error: member function expected 2 argument(s), found 1 b.addModule(.{ .name = "clap", .source_file = .{ .path = "clap.zig" } }); ~^~~~~~~~~~
I believe MR https://github.com/Hejsil/zig-clap/pull/95 fixes this. Can you give it another try?
build.zig.zon
section in build.zig
error