Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Jul 10, 2025

@octo-sts octo-sts bot added request-version-update request for a newer version of a package automated pr tigerbeetle labels Jul 10, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Jul 10, 2025

🔢 Build Failed: Dependency Version Mismatch

unsupported zig version: expected 0.14.1, found 0.13.0

Build Details

Category Details
Build System zig
Failure Point zig build -Drelease

Root Cause Analysis 🔍

The TigerBeetle project requires Zig version 0.14.1, but the build environment only has version 0.13.0 installed. This version mismatch causes multiple errors because the build script uses features or APIs that are only available in the newer version.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Suggested Changes

File: Melange YAML

  • replace at line 15 (environment.contents.packages)
    Original:
      - zig~0.13

Replacement:

      - zig~0.14
Click to expand fix analysis

Analysis

The main issue is a version mismatch between the Zig compiler required by TigerBeetle (version 0.14.1) and the one specified in the Melange YAML file (version 0.13.0). The error message clearly states "unsupported zig version: expected 0.14.1, found 0.13.0". From the upstream changelog, we can see that in PR #2705, TigerBeetle was upgraded to use Zig 0.14.1. This explains why the build is failing - the package definition needs to be updated to match the required Zig version for TigerBeetle 0.16.49.

Click to expand fix explanation

Explanation

The error message clearly indicates that TigerBeetle 0.16.49 requires Zig version 0.14.1, but the build environment is using Zig 0.13.0. This is confirmed by the upstream changelog entry for TigerBeetle 0.16.49, which mentions "Upgrade to Zig 0.14.1" in PR #2705.

The current Melange YAML specifies zig~0.13 as a dependency, which installs Zig version 0.13.x. To fix this issue, we need to update the dependency specification to zig~0.14, which will install Zig version 0.14.x, including the required 0.14.1 version.

This change aligns with Wolfi's principles of keeping packages up-to-date with upstream requirements. Since TigerBeetle has explicitly upgraded to Zig 0.14.1 in their codebase, we need to match that requirement in our build environment to successfully compile the package.

Click to expand alternative approaches

Alternative Approaches

  • Instead of using the tilde (~) operator which matches any version in the 0.14.x range, we could specify the exact version with zig=0.14.1. However, the tilde approach is preferred as it allows for minor updates within the 0.14.x series, which might include important security fixes.
  • We could also verify if Wolfi has a package for the specific version needed with zig=0.14.1. If not available, the package maintainer might need to add Zig 0.14.1 to the Wolfi repository first.

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Jul 10, 2025
@vishal-chdhry vishal-chdhry self-assigned this Jul 11, 2025
@octo-sts octo-sts bot added the bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. label Jul 11, 2025
Copy link
Member

@aborrero aborrero left a comment

Choose a reason for hiding this comment

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

LGTM.

wolfi-bot and others added 2 commits July 11, 2025 10:51
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@chainguard.dev>
@aborrero aborrero force-pushed the wolfictl-86d22a40-5874-461a-971c-71bc1bfeff40 branch from 01fe8af to 79caafd Compare July 11, 2025 08:51
@aborrero aborrero enabled auto-merge (squash) July 11, 2025 08:52
@aborrero aborrero merged commit db32182 into main Jul 11, 2025
18 checks passed
@aborrero aborrero deleted the wolfictl-86d22a40-5874-461a-971c-71bc1bfeff40 branch July 11, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. request-version-update request for a newer version of a package tigerbeetle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants