berry
berry copied to clipboard
feat: install git repositories that use pnpm
What's the problem this PR addresses?
We don't currently support installing git repositories that use pnpm.
Fixes https://github.com/yarnpkg/berry/issues/3169
How did you fix it?
Added support for installing git repositories that use pnpm; workspaces are supported too.
Checklist
- [X] I have read the Contributing Guide.
- [X] I have set the packages that need to be released for my changes to be effective.
- [X] I will check that all automated PR checks pass before the PR gets reviewed.
Any chance this could be in the next canary release? Just to be clear, this isn't just for dependencies that themselves use PNP? I can't use a branch of Vite for instance, and afaik they aren't using Yarn Berry.
This PR makes Yarn able to install any git:
dependency that uses pnpm
.
Any chance this could be in the next canary release?
Most likely yes, I originally put it on hold because it required a fix inside corepack
so that our tests would pass, but now it should be possible to rebase and make everything work. I'll look into it.
Most likely yes, I originally put it on hold because it required a fix inside
corepack
so that our tests would pass, but now it should be possible to rebase and make everything work. I'll look into it.
Great, thanks!
This PR makes Yarn able to install any
git:
dependency that usespnpm
.
Are you saying that the dependency itself is built with pnpm or the project that refers to the git dependency is pnpm?
I'm the latter for instance, I got a dependency, I wanna try out a fork. The dependency isn't even using yarn. Would this work?