Skip to content

Commit 64445b6

Browse files
committed
Fix #117: conditional to only install libtinfo5 etc for ghc < 8.3
1 parent 3b2444f commit 64445b6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

dist/index.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/installer.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ export async function installTool(
177177
// so guard “compareVersions” with “validate”.
178178
if (
179179
tool === 'ghc' &&
180-
(!validate(version) || compareVersions('8.3', version))
180+
validate(version) &&
181+
compareVersions(version, '8.3') < 0 // meaning version < 8.3
181182
) {
182183
// Andreas, 2022-12-09: The following errors out if we are not ubuntu-20.04.
183184
// Atm, I do not know how to check whether we are on ubuntu-20.04.

0 commit comments

Comments
 (0)