Skip to content

Copilot SDK npm bootstrap fails against pnpm devEngines and catalog dependencies #77386

Done

Description

@pvds

Copilot SDK npm bootstrap fails against pnpm devEngines and catalog dependencies

gh-aw v1.0.1 with engine.copilot-sdk: true generates SDK installation from ${GITHUB_WORKSPACE} using npm.

Minimal root manifest:

{
  "name": "sdk-bootstrap-repro",
  "private": true,
  "devEngines": {
    "packageManager": {
      "name": "pnpm",
      "version": "^12.20.0",
      "onFail": "download"
    }
  }
}

Run:

npm install --ignore-scripts --no-save @github/[email protected] [email protected]

npm fails with EBADDEVENGINES because the declared package manager is pnpm. Correct Node setup does not fix this. Repositories with catalog: or workspace: dependencies also cannot be installed by npm; bypassing validation is insufficient.

Expected: SDK bootstrap installs only its own dependencies, independently of repository package-manager policy and dependencies.

Suggested fix: explicit npm --prefix into a dedicated gh-aw directory already mounted into the agent sandbox, plus driver module resolution from that directory after Node switches. Cover both normal and inline Node SDK drivers.

Regression tests should retain strict pnpm devEngines and pnpm-specific dependency protocols, assert no application installation or manifest/lockfile mutation, and verify SDK loading inside the sandbox.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions