Skip to content

Commit

Permalink
Trying to fix the apparent PATH problem with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jtalk committed Nov 12, 2021
1 parent ed05b45 commit 7472648
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions curl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7472648

Please sign in to comment.