using zig 0.13.0
trying to create my own module and depend on the clap module.
i get this error when trying to compile
error: no field or member function named 'create' in 'Build.Module'
build.zig
...
const clap = b.dependency("clap", .{});
...
const foobar = b.addModule("foobar", .{
.root_source_file = b.path("src/foobar.zig"),
.target = target,
.optimize = optimize,
});
build.zig.zon
.dependencies = .{
.clap = .{
.url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.9.1.tar.gz",
.hash = "122062d301a203d003547b414237229b09a7980095061697349f8bef41be9c30266b",
},
},
i narrowed it down to either of these two lines ending up in the build.zig will cause this error to throw.
if i comment them out it compiles just fine.
edit:
i’m noticing that all my projects are throwing this error now… and i haven’t changed anything. so i’m a bit thrown off. when i do zig version
it says 0.13.0… hmm weird.