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 — nix-eval never builds, so a broken Nix derivation can merge into v2 undetected · Issue #52863 · anomalyco/opencode

nix-eval never builds, so a broken Nix derivation can merge into v2 undetected #52863

New issue
Copy link
New issue
Copy link
Open
Open
nix-eval never builds, so a broken Nix derivation can merge into v2 undetected#52863
Copy link
Assignees
rekram1-node

Description

@jerome-benoit
jerome-benoit
opened on Oct 2, 2026
Issue body actions

Description

Since #52143, nix-eval does run on v2 pull requests, but it only evaluates drvPath (.github/workflows/nix-eval.yml:52, :70, :84) and never builds. A derivation that evaluates cleanly and fails to build is therefore invisible until after merge.

Two details make it weaker than it looks:

  • desktop sits in OPTIONAL_PACKAGES (nix-eval.yml:43), and a failed desktop evaluation emits ::warning:: rather than an error (:74). A desktop build can be broken without turning the check red.
  • nix-hashes.yml triggers on push to dev/beta/v2, never pull_request, and it only recomputes .nodeModules in nix/hashes.json. It cannot look at a PR, and it cannot catch a derivation bug at all.

#50408 is the concrete case: nix/opencode.nix kept calling opencode completion, which v2 dropped. That evaluated fine and broke the build. It was reported by a user eight days after landing.

Plugins

None

OpenCode version

v2 at eb1a9ea4d9

Steps to reproduce

  1. Land a change on a v2 PR that alters a build phase, for example replacing a CLI invocation in nix/opencode.nix with a flag that does not exist.
  2. nix-eval passes: it only evaluates, and desktop is warning-only anyway.
  3. nix-hashes does not run on the PR.
  4. Merge, then run nix build .#packages.x86_64-linux.opencode on v2. It fails in postInstall.

Screenshot and/or share link

Not applicable; reproduction is command line only.

Operating System

Linux x86_64, nixpkgs 26.11, nix 2.34.8

Terminal

Not applicable.

Building opencode in the workflow would catch the #50408 class. Alternatively, drop desktop from OPTIONAL_PACKAGES once #11755 is fixed so its evaluation failure fails the job like the others.

Happy to contribute whichever direction you prefer.

Activity

  1. github-actions
    assigned
    rekram1-node
    on Oct 2, 2026
  2. github-actions commented on Oct 2, 2026

    @github-actions
    github-actionsBot
    on Oct 2, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • #52123: Reports the v2 Nix CI gap and explicitly notes that nix-eval evaluates derivations without building them.
    • #15400: A Nix build regression that escaped detection because CI only evaluated the derivation instead of running a build.
  3. jerome-benoit commented on Oct 2, 2026

    @jerome-benoit
    jerome-benoit
    on Oct 2, 2026
    ContributorAuthor
    More actions

    Checked both, and I think this is distinct:

    • Nix checks do not run on v2 pull requests #52123 is closed. Its trigger half was fixed by chore(nix): run the nix eval workflow on v2 #52143, and its closing comment explicitly flagged the remaining gap — evaluation without building — as not fixed and not tracked. This issue is that gap.
    • Nix build fails: ENOENT .github/TEAM_MEMBERS not included in fileset #15400 is a specific closed failure (.github/TEAM_MEMBERS missing from the fileset), already fixed. It is an instance of this class, not the guardrail itself.

    What is still open here is the workflow configuration: nix-eval evaluating drvPath only, desktop being warning-only, and nix-hashes having no pull_request trigger.

  4. opencodejr commented on Oct 27, 2026

    @opencodejr
    opencodejrBot
    on Oct 27, 2026
    Contributor
    More actions

    Thanks for the detailed write-up, @jerome-benoit!

    To restate the request: the Nix CI check should actually build the opencode derivation on pull requests, not just evaluate its drvPath. That would catch build-phase breakage like #50408 before merge. A second option is to make the desktop evaluation fail the job once #11755 is resolved.

    A note for whoever picks this up: on dev the workflow is now .github/workflows/check-nix.yml (renamed in #59077) and it runs on dev pull requests. It still only runs nix eval ...drvPath, desktop is still warning-only, and bot-nix-hashes.yml still runs only on push to dev. The completion call from #50408 has since been switched to --completions in nix/opencode.nix.

    Related:

    • nix: build fails after CLI completion command change #50408: the build break that would have been caught
    • Nix flake: desktop package fails to build - missing outputHashes for specta git dependency #11755: the blocker for making desktop evaluation fatal
    • chore(nix): run the nix eval workflow on v2 #52143: brought the eval check to v2 pull requests

    The maintainers will consider this and which direction they prefer, including the CI time a full build would add. Thanks also for offering to contribute.

  5. kalinichaa
    added a commit that references this issue on Nov 24, 2026

    ci(nix): publish the flake build to the omnicode cachix

    16ec9bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

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.