Closed hhamud closed 3 months ago
zig fetch --save https://github.com/sam701/zig-cli/archive/refs/heads/main.tar.gz
zig fetch --save https://github.com/sam701/zig-cli/archive/refs/heads/main.tar.gz
Thanks for the reply.
Now I get this error
install
└─ install ziggy-starkdust
└─ zig build-exe ziggy-starkdust Debug native 1 errors
src/cmd/cmd.zig:169:15: error: root struct of file 'main' has no member named 'run'
return cli.run(app, gpa_allocator);
~~~^~~~
/Users/user/.cache/zig/p/1220ab73fb7cc11b2308edc3364988e05efcddbcac31b707f55e6216d1b9c0da13f1/src/main.zig:1:1: note: struct declared here
pub usingnamespace @import("./command.zig");
^~~
referenced by:
main: src/main.zig:24:12
callMain: /opt/homebrew/Cellar/zig/0.12.0/lib/zig/std/start.zig:511:32
remaining reference traces hidden; use '-freference-trace' to see all reference traces
error: the following command failed with 1 compilation errors:
/opt/homebrew/Cellar/zig/0.12.0/bin/zig build-exe -ODebug --dep zig-cli -Mroot=/Users/user/Documents/projects/ziggy-starkdust/src/main.zig -Mzig-cli=/Users/user/.cache/zig/p/1220ab73fb7cc11b2308edc3364988e05efcddbcac31b707f55e6216d1b9c0da13f1/src/main.zig --cache-dir /Users/user/Documents/projects/ziggy-starkdust/zig-cache --global-cache-dir /Users/user/.cache/zig --name ziggy-starkdust --listen=-
Build Summary: 2/5 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install ziggy-starkdust transitive failure
└─ zig build-exe ziggy-starkdust Debug native 1 errors
error: the following build command failed with exit code 1:
/Users/user/Documents/projects/ziggy-starkdust/zig-cache/o/bb07a308956041c9453a6de1de09dfd6/build /opt/homebrew/Cellar/zig/0.12.0/bin/zig /Users/user/Documents/projects/ziggy-starkdust /Users/user/Documents/projects/ziggy-starkdust/zig-cache /Users/user/.cache/zig --seed 0x6e0780dd -Zff95952574acfbd7
probably zig cli changed their code, and backward compatibility, i will check today
issue fixed with master version of zig, master version of branch, through using dependency not from master( from the commit ). pr #514
I get this issue when trying to
make build
the repo on my system.I am using zig v0.12.0