We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn doesn't look for the workspace dependency of a dependency installed from git in that workspace, and tries to look for it at the registry instead.
@repo-a/root
github.com/user/repo-a
@repo-a/package-1
@repo-a/package-2
workspace:^
github.com/user/repo-b
@repo-b/root
"@repo-a/package-1": "[email protected]:user/repo-a.git#workspace=@repo-a/package-1"
yarn install
System: OS: macOS 15.1.1 CPU: (8) arm64 Apple M1 Binaries: Node: 22.13.0 - /private/var/folders/cn/860vwq3j5zv_7_vzbtdfq9h40000gn/T/xfs-4e1f5446/node Yarn: 3.8.7 - /private/var/folders/cn/860vwq3j5zv_7_vzbtdfq9h40000gn/T/xfs-4e1f5446/yarn npm: 10.9.2 - /opt/homebrew/opt/node@22/bin/npm bun: 1.1.8 - ~/.bun/bin/bun
This was brought up before but was closed without a solution due to being stale - #4545. The problem still exists and didn't go away.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Self-service
Describe the bug
Yarn doesn't look for the workspace dependency of a dependency installed from git in that workspace, and tries to look for it at the registry instead.
To reproduce
@repo-a/root
) in a github repogithub.com/user/repo-a
.@repo-a/package-1
and@repo-a/package-2
.@repo-a/package-1
depend on@repo-a/package-2
withworkspace:^
.github.com/user/repo-b
with a package@repo-b/root
.@repo-b/root
add a dependency to@repo-a/package-1
as"@repo-a/package-1": "[email protected]:user/repo-a.git#workspace=@repo-a/package-1"
yarn install
fail to resolve@repo-a/package-2
and fail the install@repo-a/package-1
because of it.Environment
System: OS: macOS 15.1.1 CPU: (8) arm64 Apple M1 Binaries: Node: 22.13.0 - /private/var/folders/cn/860vwq3j5zv_7_vzbtdfq9h40000gn/T/xfs-4e1f5446/node Yarn: 3.8.7 - /private/var/folders/cn/860vwq3j5zv_7_vzbtdfq9h40000gn/T/xfs-4e1f5446/yarn npm: 10.9.2 - /opt/homebrew/opt/node@22/bin/npm bun: 1.1.8 - ~/.bun/bin/bun
Additional context
This was brought up before but was closed without a solution due to being stale - #4545. The problem still exists and didn't go away.
The text was updated successfully, but these errors were encountered: