Claude Bot
34d1c70d06
fix(install): filter optional dependencies by libc field ( #26156 )
...
Implement support for the `libc` field in package.json, which is used by
packages like @rollup/rollup-linux-x64-gnu and @rollup/rollup-linux-x64-musl
to specify which libc variant they require.
Changes:
- Add `libc` field to lockfile `Meta` struct
- Implement compile-time libc detection (glibc vs musl on Linux, .all elsewhere)
- Update `isDisabled()` to check libc in addition to cpu and os
- Add `--libc` CLI flag for manually overriding libc (like `--cpu` and `--os`)
- Add libc serialization/deserialization for bun.lock and pnpm lockfiles
- Parse `libc` field from package.json
The isMatch logic handles backwards compatibility by treating `.none` (unset)
the same as `.all`, so packages without a libc field match any system libc.
Fixes #26156
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-16 08:04:11 +00:00
..
2026-01-08 01:06:03 -08:00
2025-09-24 02:42:57 -07:00
2025-11-10 16:30:47 -08:00
2025-11-07 20:58:44 -08:00
2025-11-03 20:36:22 -08:00
2025-08-12 17:07:46 -07:00
2024-09-11 16:47:38 -07:00
2025-10-07 08:17:13 -07:00
2025-11-03 22:20:07 -08:00
2025-08-14 16:36:44 -07:00
2025-12-19 23:17:51 -08:00
2025-09-22 05:30:34 -07:00
2026-01-16 08:04:11 +00:00
2025-12-11 17:44:41 -08:00
2025-11-03 20:36:22 -08:00
2025-11-03 22:20:07 -08:00
2025-11-07 05:28:33 -08:00
2025-09-25 19:03:22 -07:00
2025-11-03 22:20:07 -08:00
2025-11-03 22:20:07 -08:00
2025-10-08 18:00:38 -07:00
2026-01-08 01:06:03 -08:00
2025-11-03 22:20:07 -08:00
2025-09-27 00:45:29 -07:00
2025-09-27 00:45:29 -07:00
2025-10-19 23:28:59 -07:00
2025-11-03 22:20:07 -08:00
2025-07-15 22:14:00 -07:00
2025-09-09 21:42:01 -07:00
2025-07-07 11:21:36 -07:00
2025-09-22 05:30:34 -07:00
2025-10-29 21:05:25 -07:00
2025-09-30 13:25:50 -07:00
2025-07-14 00:47:53 -07:00
2025-09-26 15:23:32 -07:00
2025-10-08 12:13:06 -07:00
2025-08-27 06:39:11 -07:00
2026-01-07 21:52:41 -08:00
2025-12-19 05:21:44 +00:00
2025-09-09 21:42:01 -07:00
2025-09-09 21:42:01 -07:00
2025-11-21 18:31:45 -08:00
2025-09-09 21:42:01 -07:00
2025-10-08 18:00:38 -07:00
2025-09-09 21:42:01 -07:00
2025-09-09 21:42:01 -07:00
2025-11-03 22:20:07 -08:00
2026-01-07 23:39:10 -08:00
2025-11-03 22:20:07 -08:00
2025-01-20 23:17:52 -08:00
2025-12-15 18:37:09 -08:00
2025-11-03 22:20:07 -08:00
2025-11-03 22:20:07 -08:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2026-01-16 08:04:11 +00:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2026-01-16 08:04:11 +00:00
2026-01-16 08:04:11 +00:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2026-01-16 08:04:11 +00:00
2026-01-16 08:04:11 +00:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2026-01-16 08:04:11 +00:00
2026-01-16 08:04:11 +00:00
2025-09-22 03:27:09 -07:00
2025-09-22 03:27:09 -07:00
2025-08-21 14:53:50 -07:00
2026-01-08 01:06:03 -08:00
2025-09-09 21:42:01 -07:00
2025-11-14 16:49:21 -08:00
2025-09-09 21:42:01 -07:00
2025-09-09 21:42:01 -07:00
2025-11-03 22:20:07 -08:00
2025-09-09 21:42:01 -07:00
2025-10-08 18:00:38 -07:00
2025-11-01 22:38:36 -07:00
2025-11-22 15:08:12 -08:00
2025-01-03 08:21:00 -08:00
2025-08-21 14:53:50 -07:00
2025-11-03 20:36:22 -08:00
2025-08-12 17:07:46 -07:00
2025-10-20 16:32:04 -07:00
2025-11-03 22:20:07 -08:00
2024-10-12 02:37:51 -07:00
2024-06-12 16:50:57 -07:00
2025-11-03 22:20:07 -08:00
2025-11-07 05:28:33 -08:00
2025-08-12 17:07:46 -07:00
2024-05-27 02:17:43 -07:00
2025-10-08 01:51:25 -07:00
2025-09-09 21:42:01 -07:00
2026-01-09 16:56:31 -08:00
2025-07-16 01:01:10 -07:00
2025-09-09 21:42:01 -07:00
2025-09-09 21:42:01 -07:00
2025-09-09 21:42:01 -07:00