npm-install icon indicating copy to clipboard operation
npm-install copied to clipboard

Yarn v3

Open meabed opened this issue 2 years ago • 3 comments

Thanks for the great action, When i use it with yarn v3 berry - it is not re-using the cache. Any guide on how to get it working with yarn v3 berry

Thanks!

meabed avatar Oct 19 '21 22:10 meabed

Hi, for me it doesn't even work when no package-lock.json is not set, does it work for you with just a yarn.lock? See https://github.com/remix-run/remix/issues/683#issuecomment-1130176988

Edit: I got it: in a monorepo you cannot have a yarn.lock at app level, because that would prevent hoisting completely. So I need a way to force reinstalling or generate an app-level yarn.lock

So basically I don't have yarn.lock in this scenario :/

To sum it up in a monorepo setup with Yarn 3 workspaces, you might want to at least have a fallback strategy that just run Yarn when no lockfile is found.

eric-burel avatar May 18 '22 15:05 eric-burel

Is there any progress on this the only way I have found to bypass the issue is to use the no lockfile flag.

The-Code-Monkey avatar Jul 25 '23 21:07 The-Code-Monkey

take a look at my techstack mono repo, that is working

The-Code-Monkey avatar Sep 08 '23 08:09 The-Code-Monkey