From 37eed636c80880f30e204ac2ae545ec01b0eb0cf Mon Sep 17 00:00:00 2001 From: Sahilb315 Date: Mon, 13 Jul 2026 17:37:04 +0530 Subject: [PATCH] ci: use npm init for pnpm e2e to avoid integrity crash pnpm 11.x `pnpm init` still writes onFail:download; `pnpm add` then fails after PMG analysis even on 11.10.0. Seed the temp package with npm init instead. Co-authored-by: Cursor --- .github/workflows/pmg-e2e.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pmg-e2e.yml b/.github/workflows/pmg-e2e.yml index 889bde2..1be0b2e 100644 --- a/.github/workflows/pmg-e2e.yml +++ b/.github/workflows/pmg-e2e.yml @@ -289,7 +289,11 @@ jobs: run: | echo "Testing PNPM single package installation..." PNPM_TESTDIR=$(mktemp -d) && cd "$PNPM_TESTDIR" - pmg --proxy-mode=false pnpm init + # Avoid `pnpm init`: it writes devEngines.packageManager with + # onFail:download, and the following `pnpm add` then crashes with + # "Cannot use 'in' operator to search for 'integrity' in undefined" + # (seen on pnpm 11.1.3 and 11.10.0 in this workflow). + npm init -y pmg --proxy-mode=false pnpm add express@5.2.1 pmg --proxy-mode=false pnpm add lodash@4.17.21