-
Currently, whenever I merge branches in my monorepo, which has been previously updated by my colleague on a Windows machine, the
Is there a solution to fix this? should we introduce symlinks? Thanks, any help appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can either make sure the cache is too the same relative location, or disable |
Beta Was this translation helpful? Give feedback.
-
@arcanis with For example, if I'm able to guarantee that my global cache is up-to-date between two branches that I'm working on, I should be able to freely switch between those without regenerating the Switching to a project-specific cache with the cache folder gitignored doesn't help, since yarn will prune unused dependencies after installs. I think your suggested answer is that it's possible to fix this by overriding the global folder used with enableGlobalCache: true
globalFolder: ~/.yarn This works, but it makes managing the offline mirror for multiple projects unwieldy, and it potentially carries other consequences that I'm not aware of. Would you consider altering the PnP format with some kind of flag to resolve |
Beta Was this translation helpful? Give feedback.
You can either make sure the cache is too the same relative location, or disable
enableGlobalCache
.