Hejsil / zig-clap

Command line argument parsing library
MIT License
939 stars 67 forks source link

error in build.zig #127

Closed IkaSek closed 4 months ago

IkaSek commented 4 months ago
/home/ika/.cache/zig/p/12207ee987ce045596cb992cfb15b0d6d9456e50d4721c3061c69dabc2962053644d/build.zig:78:13: error: expected type '*const fn (*Build.Step, *Progress.Node) anyerror!void', found '*const fn (*Build.Step, Progress.Node) anyerror!void'
            }
            ^
/home/ika/.cache/zig/p/12207ee987ce045596cb992cfb15b0d6d9456e50d4721c3061c69dabc2962053644d/build.zig:78:13: note: pointer type child 'fn (*Build.Step, Progress.Node) anyerror!void' cannot cast into pointer type child 'fn (*Build.Step, *Progress.Node) anyerror!void'
/home/ika/.cache/zig/p/12207ee987ce045596cb992cfb15b0d6d9456e50d4721c3061c69dabc2962053644d/build.zig:78:13: note: parameter 1 'Progress.Node' cannot cast into '*Progress.Node'
/usr/lib/zig/std/Progress.zig:67:18: note: struct declared here
pub const Node = struct {
                 ^~~~~~
referenced by:
    build: /home/ika/.cache/zig/p/12207ee987ce045596cb992cfb15b0d6d9456e50d4721c3061c69dabc2962053644d/build.zig:47:20
    runBuild__anon_16213: /usr/lib/zig/std/Build.zig:2079:27
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
Hejsil commented 4 months ago

Seems you're using an older version of Zig. Have a look over the releases to find a version that works for the version you're using

https://github.com/Hejsil/zig-clap/releases