Skip to content

follow-up: extend lockfile libc verifier when linux-arm64-musl is added to optionalDependencies #1168

@carlos-alm

Description

@carlos-alm

Deferred from PR #1163 review.

Original reviewer comment: #1163 (comment)

Context: Greptile noted that the CI parity job's binary mapping references @optave/codegraph-linux-arm64-musl, and suggested adding it to EXPECTED_LIBC in scripts/verify-lockfile-libc.mjs for future-proofing. However, the package is not currently listed in package.json's optionalDependencies, so it is not present in package-lock.json. The current verifier treats a missing entry as a failure, so adding arm64-musl to EXPECTED_LIBC today would immediately break CI.

When (and only when) @optave/codegraph-linux-arm64-musl is published and added to optionalDependencies (matching the existing parity-job mapping), this verifier should be extended with:

'@optave/codegraph-linux-arm64-musl': 'musl',

so the same npm 11 strip-regression guard covers it.

If we want the guard to be future-proof now, an alternative is to relax the missing from package-lock.json branch to a no-op (skip, with a warning) so unpublished packages don't fail the check. That is a behavioral change worth its own design decision rather than bundling into the current fix-and-guard PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upDeferred work from PR reviews that needs tracking

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions