fix: dont check version format when binary version is specified #1436
Annotations
4 errors
|
|
|
tests/main.test.ts#L1727
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, stderr: '', …(1) }
- Expected
+ Received
{
- "exitCode": 0,
- "stderr": "",
- "stdout": "10.8.0
+ "exitCode": 1,
+ "stderr": "/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046
+ throw new Error(
+ ^
+
+ Error: Error when performing the request to https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046:11)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ ... 4 lines matching cause stack trace ...
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7) {
+ [cause]: Error: No mock found for https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; run the tests with NOCK_ENV=record to generate one
+ at globalThis.fetch (/Users/runner/work/corepack/corepack/tests/recordRequests.js:79:22)
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22040:33)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ at async download (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22203:18)
+ at async installVersion (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22295:55)
+ at async Engine.ensurePackageManager (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22846:32)
+ at async Engine.executePackageManagerRequest (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22957:25)
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7)
+ }
+
+ Node.js v22.21.1
",
+ "stdout": "",
}
❯ tests/main.test.ts:1727:5
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.3-eb329e0e16-ce4cebede6.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:1714:3
|
|
tests/main.test.ts#L1727
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, stderr: '', …(1) }
- Expected
+ Received
{
- "exitCode": 0,
- "stderr": "",
- "stdout": "10.8.0
+ "exitCode": 1,
+ "stderr": "/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046
+ throw new Error(
+ ^
+
+ Error: Error when performing the request to https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046:11)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ ... 4 lines matching cause stack trace ...
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7) {
+ [cause]: Error: No mock found for https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; run the tests with NOCK_ENV=record to generate one
+ at globalThis.fetch (/Users/runner/work/corepack/corepack/tests/recordRequests.js:79:22)
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22040:33)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ at async download (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22203:18)
+ at async installVersion (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22295:55)
+ at async Engine.ensurePackageManager (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22846:32)
+ at async Engine.executePackageManagerRequest (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22957:25)
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7)
+ }
+
+ Node.js v22.21.1
",
+ "stdout": "",
}
❯ tests/main.test.ts:1727:5
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.3-eb329e0e16-ce4cebede6.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:1714:3
|
|
tests/main.test.ts#L1727
AssertionError: expected { exitCode: 1, stdout: '', …(1) } to match object { exitCode: +0, stderr: '', …(1) }
- Expected
+ Received
{
- "exitCode": 0,
- "stderr": "",
- "stdout": "10.8.0
+ "exitCode": 1,
+ "stderr": "/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046
+ throw new Error(
+ ^
+
+ Error: Error when performing the request to https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22046:11)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ ... 4 lines matching cause stack trace ...
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7) {
+ [cause]: Error: No mock found for https://registry.npmjs.org/npm/-/npm-10.8.0.tgz; run the tests with NOCK_ENV=record to generate one
+ at globalThis.fetch (/Users/runner/work/corepack/corepack/tests/recordRequests.js:79:22)
+ at fetch (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22040:33)
+ at async fetchUrlStream (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22076:20)
+ at async download (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22203:18)
+ at async installVersion (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22295:55)
+ at async Engine.ensurePackageManager (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22846:32)
+ at async Engine.executePackageManagerRequest (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:22957:25)
+ at async Object.runMain (/Users/runner/work/corepack/corepack/dist/lib/corepack.cjs:23655:7)
+ }
+
+ Node.js v22.21.1
",
+ "stdout": "",
}
❯ tests/main.test.ts:1727:5
❯ NodeFS.mktempPromise .yarn/cache/@yarnpkg-fslib-npm-3.1.3-eb329e0e16-ce4cebede6.zip/node_modules/@yarnpkg/fslib/lib/xfs.js:86:24
❯ tests/main.test.ts:1714:3
|
The logs for this run have expired and are no longer available.
Loading