Skip to content

pnpm/setup@v2.1.0 fails without libatomic while bootstrapping pnpm 12 #46

Description

@glekner

Summary

pnpm/setup@v2.1.0 fails on a Linux self-hosted GitHub Actions runner without libatomic.so.1, before it can install the requested runtime or dependencies.

The action says it is downloading pnpm 12.2.1, but the failing executable is under @pnpm/exe/11.7.0. Installing pnpm 12.2.1 directly via https://get.pnpm.io/install.sh succeeds on the same runner.

Reproduction

On a Linux runner where libatomic.so.1 is unavailable:

- uses: pnpm/setup@v2.1.0
  with:
    version: 12.2.1
    runtime: node@24.16.0
    install: false

Our actual configuration reads pnpm 12.2.1 from packageManager, with the same result.

Actual result

Downloading pnpm 12.2.1 from the npm registry
==> Downloading pnpm 12.2.1
/home/runner/.local/share/pnpm/package-manager-store/v11/links/@pnpm/exe/11.7.0/.../node_modules/@pnpm/exe/pnpm: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
Error: "/home/runner/setup-pnpm/pnpm --version" exited with code 127

Expected result

The requested pnpm 12.2.1 executable runs successfully. If libatomic is an unavoidable system requirement, the action should detect it and emit an actionable error, document the requirement, or offer a non-native fallback.

Additional context

  • GitHub Actions runner: 2.336.0
  • pnpm/setup: v2.1.0 (latest release)
  • Requested pnpm: 12.2.1
  • Related native executable issue: Cannot run pnpm 11 pnpm#11531
  • There is currently no newer commit after v2.1.0 on pnpm/setup main.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions