Closed crrodger closed 3 months ago
Well, the master version of zig-clap targets master zig. If you want to use a fixed release of zig, you should use a fixed release of zig-clap that targets that release.
One could argue that this should be made for clear in the README under the install section though
Fair enough, thanks for the response.
Hi, completely new to Zig and therefore also zig-clap so if this is just some rookie error please forgive me. Thanks for making this library available. I use the Rust clap crate a lot and looking forward to something similar.
Came across this headache when following the instructions on the main Github page. Just putting this on the radar as I am sure I will not be the only person who runs into this.
Using zig 0.13.0
I ran the command as suggested
also added the two lines to my build.zig
When I then build the app, which is really the standard zig init app plus the example code from one of the zig-clap simple examples, I get this error
I see in one of the recent commits there was a change to support zig 0.13.0 that changed the std.Progress.Node to std.Build.Step.MakeOptions.
If I edit this build.zig file in the zig cache (i.e. the results from the zig fetch above) and change the MakeOptions back to the original _: std.Progress.Node, it works.
There must have been a good reason this was done and guessing it relates to zig versions. I am using 0.13.0 which it sounds like the commit was trying to update for so not sure what is happening there.
Anyway, thanks again.