Skip to content

Commit 7786314

Browse files
committed
await addGhcupReleaseChannel
1 parent 5757174 commit 7786314

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

dist/index.js

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

lib/setup-haskell.js

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

src/setup-haskell.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ export default async function run(
4343
await core.group(`Preparing ghcup environment`, async () => {
4444
// Andreas Abel, 2026-01-01, https://github.com/haskell-actions/setup/issues/78
4545
// Add ghcup vanilla and prereleases channels by default.
46-
addGhcupReleaseChannel('vanilla', os, arch);
47-
addGhcupReleaseChannel('prereleases', os, arch);
46+
await addGhcupReleaseChannel('vanilla', os, arch);
47+
await addGhcupReleaseChannel('prereleases', os, arch);
4848
if (opts.ghcup.releaseChannel)
49-
addGhcupReleaseChannel(opts.ghcup.releaseChannel.toString(), os, arch);
49+
await addGhcupReleaseChannel(
50+
opts.ghcup.releaseChannel.toString(),
51+
os,
52+
arch
53+
);
5054
});
5155

5256
for (const [t, {resolved}] of Object.entries(opts).filter(

0 commit comments

Comments
 (0)