GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pkgs/id: build.zig fails on zig 0.16 (OptimizeMode.small) — blocks nixos-rebuild switch · Issue #10313 · developing-today/code

pkgs/id: build.zig fails on zig 0.16 (OptimizeMode.small) — blocks nixos-rebuild switch #10313

New issue
Copy link
New issue
Copy link
Closed
Closed
pkgs/id: build.zig fails on zig 0.16 (OptimizeMode.small) — blocks nixos-rebuild switch#10313
Copy link
Assignees
dezren39
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

pkgs/id fails to build on current main — blocks nixos-rebuild switch

Found 2026-11-14 while deploying #10141 (the pm-aggregator switch): a full nixos-rebuild build --flake ~/git/code#amd from clean main (7c7627a) fails in pkgs/id (id-0.1.0):

build.zig:4:78: error: enum 'builtin.OptimizeMode' has no member named 'small'
    const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .small });

The pinned zig (0.16.0 in the current nixpkgs) renamed/removed the .small optimize-mode member. Everything else in the closure builds (verified: pkgs/pm-aggregator builds clean; the fleet crate was still compiling when the id failure aborted the build).

Impact: the laptop cannot switch to current main until this is fixed, so merged NixOS-packaged changes (e.g. the #10141 aggregator host-health surfacing) build but do not go live via the normal merge → switch path. User-level deployments (systemd user timers/scripts) are unaffected.

Fix direction: adapt pkgs/id's build.zig to the zig 0.16 API for the preferred optimize mode (or pin the package to the zig version it was written against).

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3718

  2. github-actions
    assigned
    dezren39
    on Nov 14, 2026
  3. dezren39 commented on Nov 15, 2026

    @dezren39
    dezren39
    on Nov 15, 2026
    MemberAuthor
    More actions

    Verified on current origin/main at ff161a7297933d3aa7e8c2da4fe0be785756fadf (local HEAD, fetched 2026-11-15): pkgs/id/examples/roc-world/host/build.zig no longer uses .small/.debug.

    • At the commit cited in this issue (7c7627a78c): preferred_optimize_mode = .small and strip = optimize != .debug (git show 7c7627a78c:pkgs/id/examples/roc-world/host/build.zig).
    • Current main: preferred_optimize_mode = .ReleaseSmall and strip = optimize != .Debug (pkgs/id/examples/roc-world/host/build.zig:4,13).
    • Fixed by commit 6c04036830a13ca2c88a1e2674b27db37715a27b ("fix(id): roc-world host build.zig — Zig 0.16 OptimizeMode names (ReleaseSmall/Debug)") which changed pkgs/id/examples/roc-world/host/build.zig.

    This appears fixed on current main; closing as fixed. If a nixos-rebuild on a current checkout still fails for a different Zig 0.16 API reason, please reopen with the new error/commit.

  4. dezren39
    closed this as completedon Nov 15, 2026
  5. developing-today
    added
    status:done
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

status:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.