You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each workspace has its own different copy of .deps/@horizon/common (for important but unrelated reasons). Running yarn on this setup gives the following error:
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["@horizon/common@link:packages/front-end/.deps/@horizon/common"] is trying to unpack in the same destination "/home/garyo/.cache/yarn/v6/npm-@horizon-common-0.1.0/node_modules/@horizon/common" as pattern ["@horizon/common@link:packages/renderer/.deps/@horizon/common"]. This could result in non-deterministic behavior, skipping.
What is the current behavior?
From the error, it appears that yarn is trying to cache the dependency in the global cache. Given that the dependency is already present on the filesystem, caching seems at best pointless, and at worst, a conflict like this.
What is the expected behavior?
Should just work. I expect "link:" to just link to the file on disk.
Steps to Reproduce
Create the above environment and run yarn.
Environment
Node Version: 10.13
Yarn v1 Version: 1.22.4
OS and version: Linux Ubuntu 18.04
The text was updated successfully, but these errors were encountered:
Bug description
I'm in a monorepo. In two workspaces, A and B, I have this structure:
A/package.json and B/package.json:
Each workspace has its own different copy of
.deps/@horizon/common
(for important but unrelated reasons). Runningyarn
on this setup gives the following error:What is the current behavior?
From the error, it appears that yarn is trying to cache the dependency in the global cache. Given that the dependency is already present on the filesystem, caching seems at best pointless, and at worst, a conflict like this.
What is the expected behavior?
Should just work. I expect "link:" to just link to the file on disk.
Steps to Reproduce
Create the above environment and run
yarn
.Environment
10.13
1.22.4
The text was updated successfully, but these errors were encountered: