Skip to content

Commit cd0d9bd

Browse files
committed
GHC: try ghcup first, choco only as fallback
1 parent 4568e64 commit cd0d9bd

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/installer.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ export async function installTool(
179179
await ghcup(tool, version, os, arch);
180180
break;
181181
case 'win32':
182-
await choco(tool, version);
183-
if (await isInstalled(tool, version, os, arch)) return;
184182
await ghcup(tool, version, os, arch);
183+
if (await isInstalled(tool, version, os, arch)) return;
184+
await choco(tool, version);
185185
break;
186186
case 'darwin':
187187
await ghcup(tool, version, os, arch);

0 commit comments

Comments
 (0)