Fix: force, buildFromSource cli opts are ignored in yarn#140
Fix: force, buildFromSource cli opts are ignored in yarn#140vweevers merged 1 commit intoprebuild:masterfrom joaomoreno:remove-yarn-check
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-installcorrectly download or build from source when explicitly told so, using yarn.Co-authored-by: Benjamin Pasero benjpas@microsoft.com
Fixes: #139