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

legacy packages are unnecessarily fetched #215

Closed
blogscot opened this issue Mar 6, 2025 · 5 comments
Closed

legacy packages are unnecessarily fetched #215

blogscot opened this issue Mar 6, 2025 · 5 comments

Comments

@blogscot
Copy link

blogscot commented Mar 6, 2025

Since I upgraded to to Zig 0.14.0 each time I build my local project the the raylib packages are being refetched 😭. If I'm not mistaken this is due to the new hash format. Apparently, the solution is to regenerate the hash values for C packages that do not contain build.zig.zon files. See links for further details:

Build.zig.zon: ‘raw’ dependencies are fetched on each build
legacy packages are unnecessarily fetched

@Not-Nik
Copy link
Owner

Not-Nik commented Mar 6, 2025

raylib does have a Zig build system integration, but hasn't updated their build.zig.zon, so this is an issue on their end. Please raise this in the main repo.

@Not-Nik Not-Nik closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2025
@silviogames
Copy link

The hashes have been updates in raylib it seems in this commit:
raysan5/raylib@bbeade6

I'm not very familiar with git and zig dependencies and was wondering as my project still fetches on every build and I'm using the most recent commit of this repository, what has to happen for the raylib commits to be added and fixing the fetch on every build in my project?

@Not-Nik
Copy link
Owner

Not-Nik commented Mar 10, 2025

Done!

@silviogames
Copy link

thanks!
so just for my understanding, you decide which commit of raylib you are using for you bindings by specifying the hash

@Not-Nik
Copy link
Owner

Not-Nik commented Mar 10, 2025

Yup, it's usually a release, but when we get a breaking Zig release like 0.14 I sometimes update to -dev versions.

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

No branches or pull requests

3 participants