Skip to content

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

@jerome-benoit

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions