Skip to content

Commit

Permalink
fixup! fix: fallback to shasum when integrity is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Jul 19, 2024
1 parent d6106e2 commit 0de49b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sources/npmRegistryUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export async function fetchLatestStableVersion(packageName: string) {

return `${version}+${
integrity ?
`sha512.${Buffer.from(integrity.slice(7), `base64`).toString(`hex`)}`:
`sha1.${shasum}`
}`;
`sha512.${Buffer.from(integrity.slice(7), `base64`).toString(`hex`)}` :
`sha1.${shasum}`
}`;
}

export async function fetchAvailableTags(packageName: string) {
Expand Down
2 changes: 1 addition & 1 deletion tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ it(`should download latest pnpm from custom registry`, async () => {
await expect(runCli(cwd, [`pnpm`, `--version`], true)).resolves.toMatchObject({

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / macos-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.13e0e63604dee098661c3fc33e5f1851ca05f8c7. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / ubuntu-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.200615a6a8a1f376c9d0543059e5abafc236e524. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 21.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 22.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 18.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3

Check failure on line 899 in tests/main.test.ts

View workflow job for this annotation

GitHub Actions / windows-latest w/ Node.js 20.x

tests/main.test.ts > should download latest pnpm from custom registry

AssertionError: expected { exitCode: +0, …(2) } to match object { exitCode: +0, …(2) } - Expected + Received Object { "exitCode": 0, - "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48. + "stderr": "! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.77e133df93688a449ed457b4045390b21b10cc7a. ! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager ", "stdout": "pnpm: Hello from custom registry ", } ❯ tests/main.test.ts:899:5 ❯ 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:891:3
exitCode: 0,
stdout: `pnpm: Hello from custom registry\n`,
stderr:
stderr:
`! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing [email protected]+sha1.d862ca5bedaa7d2328b8bde6ce2bac5141681f48.\n` +
`! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager\n\n`,
});
Expand Down

0 comments on commit 0de49b0

Please sign in to comment.