-
Notifications
You must be signed in to change notification settings - Fork 10
Unable to find module json #53
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
Comments
What version of Zig are you using? I just tried using the same version of getty-json that you showed and it worked for me, though I had to use a different package hash value. |
I use zig 0.11.0 |
Hash: I'm on |
I tried with your hash and |
Can you delete the $ rm -rf zig-cache
$ zig build --fetch The 2nd command should give you a hash value that you can update Also, if you could show your |
I tried, when the compiler give me a hash and use it I have this error :
(This is where it's weird, because the expected hash is one that I provide and found hash is another hash, seems like a bug, the word found and expected are inverted) |
I see the |
Yes because for the moment I only need this module on |
Could you try adding it to edit: I just noticed that you're using multiple |
I've tried all 😥 |
Does that
|
I didn't know zig init, but tried with and I got the same problem, I created a post on the zig discord and we will see. |
Are you using BTRFS? Maybe you are hitting this issue ziglang/zig#17282 |
I'm having a similar issue, I found the zig discord thread and commented several times there but I'll summarize what I've tried here. I also was using Here is
I run
I deleted local zig-cache, switched to master branch of zig, and restarted the process. As expected, with a
Added that hash in and reran While typing this up I got a response on discord that seems relevant/useful:
|
Thanks for looking into it @AdjectiveAllison and posting your findings here so that others can reference it! The short of it is, projects that want to use the latest version of Getty or Getty JSON will have to upgrade from 0.11.0 to a more recent version of Zig. Both Getty and Getty JSON are developed using Zig master (see the badges on either project's README) and therefore use features and have fixes for changes that are not available or present in 0.11.0. Until Zig reaches 1.0, both projects will continue using Zig master for development. I might consider keeping a separate branch though for whenever Zig 0.12.0 comes out that'll remain compatible with that version of Zig.
Correct, |
Uh oh!
There was an error while loading. Please reload this page.
Description
I'm encountering this error when installing getty json with zon
How to Reproduce the Bug
Add json to zon :
Add module in build.zig :
Additional Context
No response
The text was updated successfully, but these errors were encountered: