From ff3328f7f19b6554b95b17eb571a2d11b82b1e6a Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Tue, 20 Feb 2024 13:18:00 -0500 Subject: [PATCH] pin corepack to 0.24.1 (#1070) * pin corepack to 0.24.1 * update snapshots --- src/providers/node/mod.rs | 2 +- tests/snapshots/generate_plan_tests__node_yarn_berry.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/node/mod.rs b/src/providers/node/mod.rs index 1df5e2547..2ee0f8595 100644 --- a/src/providers/node/mod.rs +++ b/src/providers/node/mod.rs @@ -146,7 +146,7 @@ impl Provider for NodeProvider { // Install let corepack = NodeProvider::uses_corepack(app, env)?; let mut install = Phase::install(if corepack { - Some("npm install -g corepack && corepack enable".to_string()) + Some("npm install -g corepack@0.24.1 && corepack enable".to_string()) } else { NodeProvider::get_install_command(app) }); diff --git a/tests/snapshots/generate_plan_tests__node_yarn_berry.snap b/tests/snapshots/generate_plan_tests__node_yarn_berry.snap index 0a871cbfa..d38085293 100644 --- a/tests/snapshots/generate_plan_tests__node_yarn_berry.snap +++ b/tests/snapshots/generate_plan_tests__node_yarn_berry.snap @@ -30,7 +30,7 @@ expression: plan "setup" ], "cmds": [ - "npm install -g corepack && corepack enable", + "npm install -g corepack@0.24.1 && corepack enable", "yarn install --check-cache" ], "cacheDirectories": [