Skip to content

Commit 246dc48

Browse files
committed
Delete defaults for options ghc/cabal/stack-version and enable-stack
1 parent dea33d5 commit 246dc48

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

Diff for: action.yml

-3
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ inputs:
55
ghc-version:
66
required: false
77
description: 'Version of GHC to use. If set to "latest", it will always get the latest stable version. If set to "head", it will always get the latest build of GHC.'
8-
default: 'latest'
98
cabal-version:
109
required: false
1110
description: 'Version of Cabal to use. If set to "latest", it will always get the latest stable version. If set to "head", it will always get the latest build of cabal.'
1211
default: 'latest'
1312
stack-version:
1413
required: false
1514
description: 'Version of Stack to use. If set to "latest", it will always get the latest stable version.'
16-
default: 'latest'
1715
enable-stack:
1816
required: false
19-
default: false
2017
description: 'If set to `true`, will setup default Stack. Implied by any of `stack-version`, `stack-no-global`, `stack-setup-ghc`.'
2118
stack-no-global:
2219
required: false

Diff for: dist/index.js

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

Diff for: lib/opts.js

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

Diff for: src/opts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const yamlInputs: Record<string, {default: string}> = (
7575

7676
export function getDefaults(os: OS): Defaults {
7777
const mkVersion = (v: string, vs: string[], t: Tool): Version => ({
78-
version: resolve(yamlInputs[v].default, vs, t, os, false), // verbose=false: no printout here
78+
version: resolve(yamlInputs[v].default || 'latest', vs, t, os, false), // verbose=false: no printout here
7979
supported: vs
8080
});
8181

0 commit comments

Comments
 (0)