fix(nix): add shared package to bun install filters#22665
Merged
rekram1-node merged 2 commits intoanomalyco:devfrom Apr 16, 2026
Merged
fix(nix): add shared package to bun install filters#22665rekram1-node merged 2 commits intoanomalyco:devfrom
rekram1-node merged 2 commits intoanomalyco:devfrom
Conversation
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Contributor
There was a problem hiding this comment.
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 filteredbun installinvocation innix/node_modules.nix.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9a60cb4 to
b8304a2
Compare
gigamonster256
added a commit
to gigamonster256/opencode
that referenced
this pull request
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #22657
Type of change
What does this PR do?
Adds
--filter './packages/shared'tobun installinnix/node_modules.nix.After PR #22626 introduced
packages/shared,nix buildfails because shared is not included in the--filterlist. Without it, bun does not install shared's dependencies in the nix sandbox, so vite/esbuild fails resolving@tsconfig/bun/tsconfig.jsonfrompackages/shared/tsconfig.json.The
nix-hashesCI will auto-recompute and commit updated hashes once this lands ondev.How did you verify your code works?
nix build ".#packages.aarch64-darwin.opencode"passes locally after this fix (was failing with the exact error from nix: build fails after shared package introduction — missing --filter in node_modules.nix #22657)bun typecheckpasses frompackages/opencodebun installruns without warningsScreenshots / recordings
N/A — build-time fix, no UI change.
Checklist