Repository navigation
Fix build for Zig 0.18.0-dev.610+720939f8c - #50
Conversation
|
Building hangs when the cache is cold, which is causing CI to fail. I will revisit this when it seems like it is fixed upstream. |
Possible fix: https://codeberg.org/ziglang/zig/pulls/37391 |
Zig 0.18.0-dev uses a new hash format for naked packages (no metadata) when `version` is present. Using `version_` sidesteps that new hash format for now, keeping compatibility with older versions of Zig. This workaround can be reverted when Zig 0.18.0 becomes the minimum supported version. See: https://codeberg.org/ziglang/zig/pulls/37340
7af6373 to
ccc244b
Compare
- `version_` -> `upstream_version` - replaced comment with link to issue tracking reverting this workaround
|
Good idea. Made a minor stylistic change, will merge once CI passes. |
|
I noticed that projects that depend on older versions of SDL still build successfully with Zig 0.18.0-dev. I guess Zig only gripes about the new hash format for the root module, which is a smart way of doing it. So while I think this workaround is probably still useful to have during the 0.18.0-dev cycle for working on this package, it's nice that downstream users don't necessarily need to update. |
Zig 0.18.0-dev uses a new hash format for naked packages (no metadata) when
versionis present. Usingversion_sidesteps that new hash format for now, keeping compatibility with older versions of Zig.This workaround can be reverted when Zig 0.18.0 becomes the minimum supported version.
See: https://codeberg.org/ziglang/zig/pulls/37340