-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packages that are both fetched from npm in the root, and packages in the workspace are not symlinked consistently #4289
Comments
I should clarify, this doesn't seem to be related to I'm wondering, does the |
Yarn currently fails to add the correct symlinks in some cases. See yarnpkg/yarn#4289
Yarn currently fails to add the correct symlinks in some cases. See yarnpkg/yarn#4289
We had to revert in Babel due to some issues ^ |
Sorry for not reacting fast, the team is aware of the problem |
All good, we are just noticing everything is slow after moving babel-standalone into the repo 😄 to get some cool repl features and having to revert. |
lol, @hzoo you can probably blame me for that 😛 We can always move babel-standalone out of the repo, but I think the REPL functionality is very useful. |
Ya, I was thinking that we should make a smaller version of babel-standalone (babel-repl, babel-standalone-repl) that only includes what we need to test PRs/repl? I totally think it's useful and why I rushed to add it in the first place (but then now bootstrap is taking 200s instead of like 50s with workspaces 😄 and like 120 with standalone or something) hzoo/babel@32e71b6 but dono it that actually does anything lol |
Do you mean just for the plugins / presets modified in the PR? What if you want to test the interaction between the modified plugins and some other plugins? I suspect a lot of builds would want the 'full' REPL build available. Maybe we could split up the build into several files and only build the files that need to be rebuilt. Anyways, we should move this discussion to the Babel repo 😛 |
This is can also be produced with non workspace dependencies like:
and
does not install After looking for hours it seems that the hoister does not support the case when a workspace-dependency cannot be symlinked in the root |
I created a PR that hopefully is going to fix this. #7289 |
I was trying to enable workspaces in Babel and then found this issue. Is there anything I can do to help moving it forward? |
I gave another look and it sounds good to merge if the rebase is still green. I will make a pass on a few other PRs tomorrow and release all that 🙂 |
Thanks ❤️ |
Thanks! |
The 1.19.2 should be available - to upgrade inside the Babel repo, try running |
Do you want to request a feature or report a bug?
Bug, since it seems like this is related somehow to specifically what dependencies are in use. Hard to say though.
What is the current behavior?
Reproduction repository: https://github.com/loganfsmyth/__yarn-workspace-bug
The structure
and
produces
There seems to be some installation issues when the root package depends on older versions of packages from npm, and they also exist in the yarn workspace packages themselves, they don't have their dependencies symlinked to the related packages.
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/loganfsmyth/__yarn-workspace-bug
What is the expected behavior?
See repo. Packages should be symlinked as would be normally expected.
Please mention your node.js, yarn and operating system version.
Node: 6.9.1
Yarn: 0.27.5
OS: OSX 10.12.5
The text was updated successfully, but these errors were encountered: