Skip to content

set libc field to glibc in package.json targeting gnu#205

Merged
devongovett merged 1 commit intoparcel-bundler:masterfrom
cyjake:build-npm-glibc
Jun 16, 2022
Merged

set libc field to glibc in package.json targeting gnu#205
devongovett merged 1 commit intoparcel-bundler:masterfrom
cyjake:build-npm-glibc

Conversation

@cyjake
Copy link
Contributor

@cyjake cyjake commented Jun 14, 2022

fixes #203

To avoid this, Yarn now supports a libc array field in the package.json that currently accepts any of two values: glibc and musl. Just like os and cpu, packages will be skipped if they don't match the host libc.
-- https://dev.to/arcanis/yarn-32-libc-yarn-explain-next-major--o22

Yarn, cnpm, and pnpm will filter optionalDependencies with abi as well, which only understands gcc abi with the name glibc, yet -gnu is a well conceived abi naming in napi packages. Hence manually set libc field to [ "glibc" ].

@cyjake cyjake force-pushed the build-npm-glibc branch from 98dd672 to eff85ea Compare June 14, 2022 05:26
@devongovett devongovett merged commit e5106e5 into parcel-bundler:master Jun 16, 2022
evanrichter pushed a commit to evanrichter/parcel-css that referenced this pull request Jun 29, 2022
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.

detect-libc returns glibc on Linux

2 participants