keep-starknet-strange / ziggy-starkdust

⚡ Cairo VM in Zig ⚡
https://keep-starknet-strange.github.io/ziggy-starkdust/
MIT License
80 stars 39 forks source link

Manifest Hash mismatch #516

Closed hhamud closed 3 months ago

hhamud commented 4 months ago

I get this issue when trying to make build the repo on my system.

I am using zig v0.12.0

/Users/user/Documents/projects/ziggy-starkdust/build.zig.zon:14:21: error: hash mismatch: manifest declares 1220c008492d9460c3be2b209600a948181e6efb3bf0d79a1633def499632e708f4b but the fetched package has 1220ab73fb7cc11b2308edc3364988e05efcddbcac31b707f55e6216d1b9c0da13f1
            .hash = "1220c008492d9460c3be2b209600a948181e6efb3bf0d79a1633def499632e708f4b",
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [test] Error 1
StringNick commented 4 months ago

zig fetch --save https://github.com/sam701/zig-cli/archive/refs/heads/main.tar.gz

hhamud commented 4 months ago

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
StringNick commented 4 months ago

probably zig cli changed their code, and backward compatibility, i will check today

StringNick commented 3 months ago

issue fixed with master version of zig, master version of branch, through using dependency not from master( from the commit ). pr #514