-
Notifications
You must be signed in to change notification settings - Fork 75
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: force, buildFromSource cli opts are ignored in yarn #140
Conversation
this removes an old check for whether yarn is executing the script which breaks the force and buildFromSource cli options. the check seems irrelevant by now so it seems safe to remove Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
Can you elaborate? Is it b6f3b36 that made the fix irrelevant? |
Good question. And now that I look at it again, it just seems that e9065dd was simply a bad fix, since it just makes it that in yarn, it would always load from https, regardless of the What would be interesting to find out was: what was making |
Lines 45 to 49 in e9065dd
The first if-branch was added because yarn would always match the second if-branch, because it didn't add metadata (like |
I agree, as |
6.1.1 |
Thank you! |
The issue comes from this changes 4 years ago which fixed the issue that sources were always compiling when used in yarn: e9065dd
This fix seems irrelevant by now, when one looks at the code paths. It also blocks the usage of the force and buildFromSource options. It seems safe to simply remove the check altogether. I have verified that doing so makes
prebuild-install
correctly download or build from source when explicitly told so, using yarn.Co-authored-by: Benjamin Pasero benjpas@microsoft.com
Fixes: #139