fix: fallback to shasum
when integrity
is not defined
#1099
Annotations
4 errors
tests/main.test.ts#L977
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, …(2) }
- Expected
+ Received
Object {
- "exitCode": 0,
- "stderr": "",
- "stdout": "pnpm: Hello from custom registry
+ "exitCode": 1,
+ "stderr": "D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528
+ throw new Error(`Signature does not match`);
+ ^
+
+ Error: Signature does not match
+ at verifySignature (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528:11)
+ at fetchLatestStableVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21535:5)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async fetchLatestStableVersion2 (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21654:14)
+ at async Engine.getDefaultVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22274:23)
+ at async Engine.executePackageManagerRequest (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22372:47)
+ at async Object.runMain (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:23078:5)
+
+ Node.js v21.7.3
",
+ "stdout": "",
}
❯ tests/main.test.ts:977:7
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.0-821f4faf89-e327aaf73f.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:976:5
|
tests/main.test.ts#L977
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, …(2) }
- Expected
+ Received
Object {
- "exitCode": 0,
- "stderr": "",
- "stdout": "pnpm: Hello from custom registry
+ "exitCode": 1,
+ "stderr": "D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528
+ throw new Error(`Signature does not match`);
+ ^
+
+ Error: Signature does not match
+ at verifySignature (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528:11)
+ at fetchLatestStableVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21535:5)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async fetchLatestStableVersion2 (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21654:14)
+ at async Engine.getDefaultVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22274:23)
+ at async Engine.executePackageManagerRequest (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22372:47)
+ at async Object.runMain (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:23078:5)
+
+ Node.js v21.7.3
",
+ "stdout": "",
}
❯ tests/main.test.ts:977:7
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.0-821f4faf89-e327aaf73f.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:976:5
|
tests/main.test.ts#L977
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, …(2) }
- Expected
+ Received
Object {
- "exitCode": 0,
- "stderr": "",
- "stdout": "pnpm: Hello from custom registry
+ "exitCode": 1,
+ "stderr": "D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528
+ throw new Error(`Signature does not match`);
+ ^
+
+ Error: Signature does not match
+ at verifySignature (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21528:11)
+ at fetchLatestStableVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21535:5)
+ at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
+ at async fetchLatestStableVersion2 (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:21654:14)
+ at async Engine.getDefaultVersion (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22274:23)
+ at async Engine.executePackageManagerRequest (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:22372:47)
+ at async Object.runMain (D:\\a\\corepack\\corepack\\dist\\lib\\corepack.cjs:23078:5)
+
+ Node.js v21.7.3
",
+ "stdout": "",
}
❯ tests/main.test.ts:977:7
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.0-821f4faf89-e327aaf73f.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:976:5
|
|
This job failed
Loading