Repository navigation
Bun lock install links workspace dependency to workspace root instead of package directory #691
Answered
by
jdx
mwolson
asked this question in
Troubleshooting and Bugs
|
I can reproduce this with aube 1.13.1 linux-x64 (2026-05-14).
Steps: cd bun-workspace-link
./repro.shExpected:
Actual:
In the larger project where I found this, the same behavior causes TypeScript to fail resolving exports from the workspace dependency. Real Bun links the same dependency to |
Answered by
jdx
May 15, 2026
Replies: 1 comment 1 reply
|
Thanks for the concise repro. I reproduced the bad symlink target and opened a fix in #696. Root cause: Bun writes workspace package entries as Validation done on the PR:
|
1 reply
Answer selected by
mwolson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the concise repro. I reproduced the bad symlink target and opened a fix in #696.
Root cause: Bun writes workspace package entries as
workspace:packages/..., and Aube was treating that tail like a range selector instead of a root-relative workspace path, so the linker ended up targeting the workspace root.Validation done on the PR:
cargo fmt --checkcargo test -p aube-lockfile bun::tests::test_parse_bun_workspace_package_path_as_link_targetmise run test:bats test/import.bats --filter 'bun.lock links workspace deps'\n- yourbun-workspace-link./repro.sh, which now passes and links topackages/contracts\n\nThis comment was generated by Codex.