Skip to content

Nix build fails: ENOENT .github/TEAM_MEMBERS not included in fileset #15400

Closed

Description

@jerome-benoit

Description

After PR #15369 (chore(script): source team members from TEAM_MEMBERS), the Nix build fails during buildPhase because .github/TEAM_MEMBERS is not included in the source fileset.

The script packages/script/src/index.ts reads the file at build time:

const teamPath = path.resolve(import.meta.dir, "../../../.github/TEAM_MEMBERS")
const team = [
  ...(await Bun.file(teamPath).text().then(...)),
  ...bot,
]

But nix/node_modules.nix doesn't include .github/ in the fileset:

lib.fileset.unions [
  ../packages
  ../bun.lock
  ../package.json
  ../patches
  ../install
]

Note: The nix-eval CI workflow only runs nix eval (flake evaluation), not nix build, so this regression wasn't caught.

Plugins

N/A (build-time issue)

OpenCode version

Post-commit 78cea89 (2026-02-27)

Steps to reproduce

nix build github:anomalyco/opencode

Or after nix flake update in a flake that uses opencode as input.

Screenshot and/or share link

ENOENT: no such file or directory, open '/nix/var/nix/builds/nix-34088-2075937579/source/.github/TEAM_MEMBERS'
    path: "/nix/var/nix/builds/nix-34088-2075937579/source/.github/TEAM_MEMBERS",
 syscall: "open",
   errno: -2,
    code: "ENOENT"

Bun v1.3.9 (macOS arm64)

Operating System

macOS (aarch64-darwin), but affects all Nix builds

Terminal

N/A (Nix build)

Activity

  1. jerome-benoit commented on Feb 27, 2026

    @jerome-benoit
    ContributorAuthor

    Additional note about nix-hashes.yml - Actually not needed: TEAM_MEMBERS is read during buildPhase, not during bun install, so it doesn't affect node_modules hash.

  2. added a commit that references this issue on Feb 27, 2026
    b12b098
  3. itpropro commented on Mar 2, 2026

    @itpropro

    Temporary workaround:

    ...
    let
      opencodePackage = inputs.opencode.packages.${pkgs.stdenv.hostPlatform.system}.default;
      patchedOpencodePackage = opencodePackage.overrideAttrs (old: {
        preBuild = (old.preBuild or "") + ''
          mkdir -p .github
          cp ${inputs.opencode}/.github/TEAM_MEMBERS .github/TEAM_MEMBERS
        '';
      });
    in
    ...
    programs.opencode = {
          enable = true;
          package = patchedOpencodePackage;
          settings = {
  4. gigamonster256 commented on Mar 4, 2026

    @gigamonster256
    Contributor

    can be closed #15648

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions