Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update corepack to 0.18.1 #48483

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions deps/corepack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [0.18.1](https://github.com/nodejs/corepack/compare/v0.18.0...v0.18.1) (2023-06-13)


### Features

* update package manager versions ([#272](https://github.com/nodejs/corepack/issues/272)) ([5345774](https://github.com/nodejs/corepack/commit/53457747a26a5de3debbd0d9282b338186bbd7c3))


### Bug Fixes

* disable `v8-compile-cache` when using `npm@>=9.7.0` ([#276](https://github.com/nodejs/corepack/issues/276)) ([2f3678c](https://github.com/nodejs/corepack/commit/2f3678cd7915978f4e2ce7a32cbe5db58e9d0b8d))
* don't override `process.exitCode` ([#268](https://github.com/nodejs/corepack/issues/268)) ([17d1f3d](https://github.com/nodejs/corepack/commit/17d1f3dd41ef6127228d427fd5cca373d6c97f0f))

## [0.18.0](https://github.com/nodejs/corepack/compare/v0.17.2...v0.18.0) (2023-05-19)


Expand Down
3 changes: 2 additions & 1 deletion deps/corepack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ network interaction.
There are a wide variety of networking issues that can occur while running `corepack` commands. Things to check:

- Make sure your network connection is active.
- Make sure the host for your request can be resolved by your DNS; try using `curl [URL]` from your shell.
- Make sure the host for your request can be resolved by your DNS; try using
`curl [URL]` (ipv4) and `curl -6 [URL]` (ipv6) from your shell.
- Check your proxy settings (see [Environment Variables](#environment-variables)).

## Contributing
Expand Down
37 changes: 16 additions & 21 deletions deps/corepack/dist/lib/corepack.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38675,7 +38675,7 @@ function String2(descriptor, ...args) {
}

// package.json
var version = "0.18.0";
var version = "0.18.1";

// sources/Engine.ts
var import_fs3 = __toESM(require("fs"));
Expand Down Expand Up @@ -38718,7 +38718,7 @@ var config_default = {
}
},
pnpm: {
default: "8.5.1+sha1.97019f5a8ec2416123506419ab36dd558e4c72eb",
default: "8.6.1+sha1.435b3c83c7de5c455ad80fd63ee7ecf3b67b949b",
fetchLatestFrom: {
type: "npm",
package: "pnpm"
Expand Down Expand Up @@ -38770,7 +38770,7 @@ var config_default = {
package: "yarn"
},
transparent: {
default: "3.5.1+sha224.13b84a541cae0695210d8c99f1dbd0e89ef09d93e166a59a8f8eb7ec",
default: "3.6.0+sha224.19e47520fa56c6146388fdeb438d9dcf6630c3f277a2e1180995c3bb",
commands: [
[
"yarn",
Expand Down Expand Up @@ -39088,7 +39088,7 @@ async function installVersion(installTarget, locator, { spec }) {
log(`Install finished`);
return installFolder;
}
async function runVersion(installSpec, binName, args) {
async function runVersion(locator, installSpec, binName, args) {
let binPath = null;
if (Array.isArray(installSpec.spec.bin)) {
if (installSpec.spec.bin.some((bin) => bin === binName)) {
Expand All @@ -39108,7 +39108,8 @@ async function runVersion(installSpec, binName, args) {
}
if (!binPath)
throw new Error(`Assertion failed: Unable to locate path for bin '${binName}'`);
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
if (locator.name !== `npm` || import_semver.default.lt(locator.reference, `9.7.0`))
await Promise.resolve().then(() => __toESM(require_v8_compile_cache()));
process.env.COREPACK_ROOT = import_path3.default.dirname(require.resolve("corepack/package.json"));
process.argv = [
process.execPath,
Expand Down Expand Up @@ -39760,19 +39761,18 @@ async function executePackageManagerRequest({ packageManager, binaryName, binary
if (resolved === null)
throw new UsageError(`Failed to successfully resolve '${descriptor.range}' to a valid ${descriptor.name} release`);
const installSpec = await context.engine.ensurePackageManager(resolved);
return await runVersion(installSpec, binaryName, args);
return await runVersion(resolved, installSpec, binaryName, args);
}
async function main(argv) {
async function runMain(argv) {
const context = {
...Cli.defaultContext,
cwd: process.cwd(),
engine: new Engine()
};
const [firstArg, ...restArgs] = argv;
const request = getPackageManagerRequestFromCli(firstArg, context);
let cli;
if (!request) {
cli = new Cli({
const cli = new Cli({
binaryLabel: `Corepack`,
binaryName: `corepack`,
binaryVersion: version
Expand All @@ -39783,14 +39783,14 @@ async function main(argv) {
cli.register(DisableCommand);
cli.register(HydrateCommand);
cli.register(PrepareCommand);
return await cli.run(argv, context);
await cli.runExit(argv, context);
} else {
const cli2 = new Cli({
const cli = new Cli({
binaryLabel: `'${request.binaryName}', via Corepack`,
binaryName: request.binaryName,
binaryVersion: `corepack/${version}`
});
cli2.register(class BinaryCommand extends Command {
cli.register(class BinaryCommand extends Command {
constructor() {
super(...arguments);
this.proxy = options_exports.Proxy();
Expand All @@ -39799,17 +39799,12 @@ async function main(argv) {
return executePackageManagerRequest(request, this.proxy, this.context);
}
});
return await cli2.run(restArgs, context);
const code = await cli.run(restArgs, context);
if (code !== 0) {
process.exitCode ??= code;
}
}
}
function runMain(argv) {
main(argv).then((exitCode) => {
process.exitCode = exitCode;
}, (err) => {
console.error(err.stack);
process.exitCode = 1;
});
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
runMain
Expand Down
2 changes: 1 addition & 1 deletion deps/corepack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "corepack",
"version": "0.18.0",
"version": "0.18.1",
"homepage": "https://github.com/nodejs/corepack#readme",
"bugs": {
"url": "https://github.com/nodejs/corepack/issues"
Expand Down