Skip to content

fix(nix): add shared package to bun install filters#22665

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
jerome-benoit:fix/nix-shared-filter
Apr 16, 2026
Merged

fix(nix): add shared package to bun install filters#22665
rekram1-node merged 2 commits intoanomalyco:devfrom
jerome-benoit:fix/nix-shared-filter

Conversation

@jerome-benoit
Copy link
Copy Markdown
Contributor

@jerome-benoit jerome-benoit commented Apr 15, 2026

Issue for this PR

Closes #22657

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds --filter './packages/shared' to bun install in nix/node_modules.nix.

After PR #22626 introduced packages/shared, nix build fails because shared is not included in the --filter list. Without it, bun does not install shared's dependencies in the nix sandbox, so vite/esbuild fails resolving @tsconfig/bun/tsconfig.json from packages/shared/tsconfig.json.

The nix-hashes CI will auto-recompute and commit updated hashes once this lands on dev.

How did you verify your code works?

Screenshots / recordings

N/A — build-time fix, no UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI review requested due to automatic review settings April 15, 2026 20:43
@github-actions github-actions bot added contributor needs:compliance This means the issue will auto-close after 2 hours. labels Apr 15, 2026
@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Nix bun install workspace filter list to include the newly introduced packages/shared workspace so its dependencies are available during sandboxed builds (fixing the reported @tsconfig/bun resolution failure).

Changes:

  • Add --filter './packages/shared' to the filtered bun install invocation in nix/node_modules.nix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jerome-benoit jerome-benoit marked this pull request as draft April 15, 2026 21:16
@jerome-benoit jerome-benoit marked this pull request as ready for review April 16, 2026 12:22
@jerome-benoit jerome-benoit force-pushed the fix/nix-shared-filter branch from 9a60cb4 to b8304a2 Compare April 16, 2026 13:01
@rekram1-node rekram1-node merged commit cc7acd9 into anomalyco:dev Apr 16, 2026
10 of 12 checks passed
gigamonster256 added a commit to gigamonster256/opencode that referenced this pull request Apr 16, 2026
@jerome-benoit jerome-benoit deleted the fix/nix-shared-filter branch April 16, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix: build fails after shared package introduction — missing --filter in node_modules.nix

3 participants