From 5938b4ed60c722bd1b6a0b2b7bbc7d5099d39bd5 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Tue, 20 Feb 2024 13:06:18 -0500 Subject: [PATCH 1/2] pin corepack to 0.24.1 --- src/providers/node/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }); From 036b6a9cf688a89ff5977a5249b730d1e095b5e8 Mon Sep 17 00:00:00 2001 From: Jake Runzer Date: Tue, 20 Feb 2024 13:08:56 -0500 Subject: [PATCH 2/2] update snapshots --- tests/snapshots/generate_plan_tests__node_yarn_berry.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": [