-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix nohoist binLink #5492
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
fix nohoist binLink #5492
Conversation
address yarnpkg#5442
|
This change will increase the build size from 10.51 MB to 10.51 MB, an increase of 4.92 KB (0%)
|
|
the tests pass on linux/mac but failed on appVeyor, seems like a windows specific issue... I am trying to get a windows docker container running on my mac so I can debug it. Not a lot of experience with windows-docker, not sure if that is the best way to go about this.... maybe there is a way to debug on appVeyor session directly? Anybody has done similar things before? @bestander @arcanis do you have any suggestion? |
|
never mind, I found the problem. Had to use my dad's pc, that was painful... will send updates tomorrow |
|
alright, we are back to the business now... hopefully, we will get a reviewer soon... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(forgot to press the 'submit review' button ...)
|
|
||
| if (isDirectRequire || (this.topLevelBinLinking && !linksToCreate.has(name))) { | ||
| // a nohoist package should not be linked at topLevel bin | ||
| if (!isNohoist && (isDirectRequire || (this.topLevelBinLinking && !linksToCreate.has(name)))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will happen if a toplevel dependency is marked as nohoist? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@arcanis new tests are in, let me know if you have other question. |
arcanis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @connectdotz for maintaining this feature :)
Summary
address #5487
src
test
Test plan
existing and new tests should pass.