Skip to content
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

chore: add libc fields on linux platform packages #89

Merged
merged 1 commit into from
Mar 20, 2022
Merged

Conversation

yisibl
Copy link
Owner

@yisibl yisibl commented Mar 20, 2022

With this update, you can avoid downloading both gnu and musl packages in Linux, since you can't accurately determine the C libraries that native modules depend on just from os/cpu.

Currently only yarn 3.2+ and cnpm are supported, the npm implementation is still under discussion.

@vercel
Copy link

vercel bot commented Mar 20, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/yisibl/resvg-js/5rJFuuS5YDLh9SkysGhtqAXq9q1P
✅ Preview: https://resvg-js-git-add-libc-fields-yisibl.vercel.app

On Linux, it is not possible to tell exactly what kind of C library a native modules depends on just by os/cpu, so yarn 3.2 and cnpm added libc fields to further distinguish this case. This avoids downloading both `gnu` and `musl` packages at the same time.

Currently only [yarn 3.2+](yarnpkg/berry#3981) and [cnpm](cnpm/npminstall#387) are supported, the npm implementation is [still under discussion](npm/rfcs#519).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant