-
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
fix(config): allow binLinks to be set in .yarnrc #5113
Conversation
Look like this broke some stuff. 😬 I'll look into the failing tests tomorrow. |
Isn't this a duplicate of
? |
I think the issue was that you just couldn't set |
@kaylieEB Sure, I'll take a look at that tomorrow. |
@kaylieEB I tried the change you suggested in I changed that line to |
hmm, I was able to verify it on my end w/
|
Well that's interesting. The only difference I can see is that you're using |
I tested this again and got different results. No idea what happened the first time, I followed the same process both times. Anyway, using However, I did find another problem. With At this point I think the best solution is for me to revert my change in |
@iansu ping! any updates? |
Not much of an update. I tried a few things to get |
Sorry for the delay, did you try setting the default here? yarn/src/registries/yarn-registry.js Lines 15 to 30 in 8918b6c
|
I tried changing it in a number of places but not at the registry level. It looks like that fixes all the tests except for one. I'll update the PR and push my changes so we can see the CI results. |
This is already supported without this PR in a roundabout way. Try using
|
@rally25rs looks like this is also a config option in npm: https://docs.npmjs.com/misc/config#bin-links For this reason, I'm in favor of merging the PR. What do you think? |
@BYK didn't realize it was also an npm config setting. In that case I'm not opposed to adding it. |
Thanks a lot for the patch @iansu and sorry for the wait! |
Awesome! Nice to see it finally make it in. |
Summary
Fixes #4925. Allow setting
bin-links false
in.yarnrc
. Currently setting this option doesn't have any effect.Test plan
.yarnrc
file containing the linebin-links false
yarn add gulp-cli
(or any package with binaries)node_modules/.bin