-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[build][Zig] 0.17 migration #5951
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
base: master
Are you sure you want to change the base?
Changes from all commits
8856b7e
42c0fc5
c7dbfdf
9ae3cdf
3472e60
74c1b9f
23e73da
c028bf0
ff71537
eb2d1c0
f1dc836
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| .{ | ||
| .name = .raylib, | ||
| .version = "6.0.0", | ||
| .minimum_zig_version = "0.16.0", | ||
| .minimum_zig_version = "0.17.0-dev.1426+58a94eaae", | ||
|
|
||
| .fingerprint = 0x13035e5cb8bc1ac2, // Changing this has security and trust implications. | ||
|
|
||
|
|
@@ -21,8 +21,8 @@ | |
| .hash = "N-V-__8AAJl1DwBezhYo_VE6f53mPVm00R-Fk28NPW7P14EQ", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm seeing a hash mismatch for this package with the patch on
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ran it on a clean build, cleaned all caches, with both the most recent zig version available at the moment
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cleaned up all my cached files as well, and the mismatch is gone. Strange it occurred at all though.. |
||
| }, | ||
| .zemscripten = .{ | ||
| .url = "git+https://github.com/zig-gamedev/zemscripten#3fa4b778852226c7346bdcc3c1486e875a9a6d02", | ||
| .hash = "zemscripten-0.2.0-dev-sRlDqApRAACspTbAZnuNKWIzfWzSYgYkb2nWAXZ-tqqt", | ||
| .url = "git+https://github.com/Yinameah/zemscripten#06d49243789d638ba10d4af004c46df4da83579c", | ||
| .hash = "zemscripten-0.2.0-dev-sRlDqKFRAAAXl8aICu541O6PiY70v4HIr3FTmCg--WqM", | ||
| }, | ||
| }, | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the
preload_pathsbug onzemscriptenthis part is not working, the newsrc_pathis astd.Build.LazyPath, this cast is not filling it up. Here is what I did:I tried to fix it using your proposed solution
emcc.addArg(path.get(b))but turns out the wholeResourceFile.get()is wrong, as it was never used looks like zig never bothered to validate this function, so theself.src_path.path(b, "")it is using just returns anotherLazyPathinstead of a string, but the function needs a string. This is from a commit after the one locked in the master raylib so that is why it works now in raylib, after they changed to thatResourceFilethings didn't work anymore, but they didn't realize 🙄.This hole is deeper than we thought.