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

Manifest Hash mismatch #516

Closed
hhamud opened this issue May 17, 2024 · 4 comments
Closed

Manifest Hash mismatch #516

hhamud opened this issue May 17, 2024 · 4 comments

Comments

@hhamud
Copy link

hhamud commented May 17, 2024

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
Copy link
Collaborator

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

@hhamud
Copy link
Author

hhamud commented May 19, 2024

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
Copy link
Collaborator

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

@StringNick
Copy link
Collaborator

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

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

Successfully merging a pull request may close this issue.

2 participants