Skip to content

Conversation

@romeoahmed
Copy link

Description

With the recent breaking changes in Zig 0.16.0-dev, the package manager now strictly enforces the presence of the fingerprint field in build.zig.zon. Additionally, certain ZON fields now expect enum literals.

This PR updates the project metadata to align with these requirements.

Key Changes

  • Added .fingerprint: Mandatory for Zig 0.16.0+ to pass the build phase.
  • Updated .name syntax: Changed to the preferred enum-style literal to fix expected enum literal errors in new parsers.
  • Bumped minimum_zig_version to 0.14.0: Based on testing, this is the lowest version that correctly recognizes and handles the new fingerprint field and ZON format.

Verification Results

  • Zig 0.16.0-dev: zig build works correctly (previously failed with missing fingerprint).
  • Zig 0.14.0: Verified as the minimum baseline for this format.

Fixes the build failure for all users on recent nightlies.

- Add mandatory 'fingerprint' field required by Zig 0.16.0-dev.
- Update 'minimum_zig_version' to 0.14.0 to support new ZON syntax.
- Fix 'expected enum literal' error by updating .name field.
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 this pull request may close these issues.

1 participant