Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install it using the built-in package manager #94

Closed
notramo opened this issue Mar 5, 2023 · 1 comment
Closed

Can't install it using the built-in package manager #94

notramo opened this issue Mar 5, 2023 · 1 comment

Comments

@notramo
Copy link

notramo commented Mar 5, 2023

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" } });
    ~^~~~~~~~~~
@Hejsil
Copy link
Owner

Hejsil commented Mar 6, 2023

I believe MR #95 fixes this. Can you give it another try?

@Hejsil Hejsil closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants