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
I'm trying to install a package from a Git monorepo using a specific workspace (subfolder), while also targeting a specific branch or commit, but I haven't found any syntax that works in Yarn v3 or v4.
I want to install mobile-audio-player from this monorepo, from a specific branch or commit. I’ve tried something like: yarn add mobile-audio-player@git+https://git.repo.url.git#branch:workspace=mobile-audio-player
But this results in the error: Invalid Git resolution protocol ("branch") or isn't supported by any available resolver
Hi Yarn team 👋
I'm trying to install a package from a Git monorepo using a specific workspace (subfolder), while also targeting a specific branch or commit, but I haven't found any syntax that works in Yarn v3 or v4.
Here’s my monorepo structure:
I want to install mobile-audio-player from this monorepo, from a specific branch or commit. I’ve tried something like:
yarn add mobile-audio-player@git+https://git.repo.url.git#branch:workspace=mobile-audio-player
But this results in the error:
Invalid Git resolution protocol ("branch") or isn't supported by any available resolver
✅ This works (only from the default branch):
yarn add mobile-audio-player@https://git.repo.url.git#workspace=mobile-audio-player
❓My question:
Is there a supported way in Yarn v3 or v4 to install a workspace from a specific branch or commit of a Git monorepo?
If not, is there any recommended workaround?
This would be very helpful for testing workspace packages before merging changes into the default branch.
Any help or roadmap insight would be greatly appreciated 🙏
Thanks in advance for all the great work!
The text was updated successfully, but these errors were encountered: