Skip to content

Conversation

@ee7
Copy link
Member

@ee7 ee7 commented Jul 29, 2025

See the release notes for Zig 0.14.0.

The reflected breaking changes are, quoting from those release notes:

  • std.rand (renamed to std.Random)

  • Zig 0.14.0 updates the fields of the std.builtin.Type tagged union to follow these conventions by lowercasing them.
    [...]
    Note that this requires using "quoted identifier" syntax for @"struct", @"union", @"enum", @"opaque", and @"anyframe", because these identifiers are also keywords.


Previous bump: #410

To-do:

  • Update the Zig code in the exercises to reflect the breaking changes.
  • Update links to point to Zig 0.14.1.
  • Ensure that this PR is merged at the same time as the corresponding PR in the exercism/zig-test-runner repo. Please let me merge both. We should merge this only after the Zig 0.14.1 image is successfully deployed on Exercism.

I'll deliberately keep this PR as a draft for now to indicate that it's not ready to be merged. However, it is ready for review.

See the release notes for Zig 0.14.0 [1].

The reflected breaking changes are, quoting from those release notes:

    - std.rand (renamed to std.Random) [2]

    - Zig 0.14.0 updates the fields of the std.builtin.Type tagged union
      to follow these conventions by lowercasing them.

      [...]

      Note that this requires using "quoted identifier" syntax for
      @"struct", @"union", @"enum", @"opaque", and @"anyframe", because
      these identifiers are also keywords. [3]

[1] https://ziglang.org/download/0.14.0/release-notes.html
[2] https://ziglang.org/download/0.14.0/release-notes.html#List-of-Deprecations
[3] https://ziglang.org/download/0.14.0/release-notes.html#stdbuiltinType-Fields-Renamed
@ee7 ee7 requested a review from keiravillekode July 29, 2025 11:30
@ee7 ee7 self-assigned this Jul 29, 2025
@ee7 ee7 changed the title .github: bump Zig from 0.13.0 to 0.14.1 .github, docs, exercises: bump Zig from 0.13.0 to 0.14.1 Jul 29, 2025
Copy link
Contributor

@keiravillekode keiravillekode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test runner change still needs guardian review.

@ee7 ee7 marked this pull request as ready for review July 29, 2025 15:35
@ee7
Copy link
Member Author

ee7 commented Jul 29, 2025

From https://exercism.org/tracks/zig/build:

Test Runner

Create Test Runners that have the single responsibility of taking a solution, running all tests and returning a standardized output.
Current version: 9cb572edc5e68d4668172703f3ae89bb5a378a0d (Takes up to 10 mins to deploy)

which shows that exercism/zig-test-runner@9cb572e was deployed correctly. Merging.

@ee7 ee7 merged commit 9d70481 into exercism:main Jul 29, 2025
7 checks passed
@ee7 ee7 deleted the zig-0.14.1 branch July 29, 2025 15:39
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.

2 participants