From 74726480338ca80a0740c2fbc31bb577bb5ad1b0 Mon Sep 17 00:00:00 2001 From: Roman Nazarenko Date: Fri, 12 Nov 2021 22:44:31 +0000 Subject: [PATCH] Trying to fix the apparent PATH problem with windows --- curl.js | 3 +++ dist/index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/curl.js b/curl.js index f8c9b9b..6d31835 100644 --- a/curl.js +++ b/curl.js @@ -57,6 +57,9 @@ export async function upgrade() { win32: { exec: async () => { await exec("choco", ["install", "curl"]); + // If this is the first time chocolatey is run, it won't be in the PATH. + // It sounds like a runner setup issue, to be fair, but we still need it to work. + core.addPath("C:\\ProgramData\\chocolatey\\bin"); }, }, darwin: { diff --git a/dist/index.js b/dist/index.js index 13d8432..c6f1049 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5309,6 +5309,9 @@ async function upgrade() { win32: { exec: async () => { await (0,exec.exec)("choco", ["install", "curl"]); + // If this is the first time chocolatey is run, it won't be in the PATH. + // It sounds like a runner setup issue, to be fair, but we still need it to work. + core.addPath("C:\\ProgramData\\chocolatey\\bin"); }, }, darwin: {