Skip to content

Commit

Permalink
Delete defaults for options ghc/cabal/stack-version and enable-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Jan 27, 2024
1 parent dea33d5 commit 246dc48
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ inputs:
ghc-version:
required: false
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.'
default: 'latest'
cabal-version:
required: false
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.'
default: 'latest'
stack-version:
required: false
description: 'Version of Stack to use. If set to "latest", it will always get the latest stable version.'
default: 'latest'
enable-stack:
required: false
default: false
description: 'If set to `true`, will setup default Stack. Implied by any of `stack-version`, `stack-no-global`, `stack-setup-ghc`.'
stack-no-global:
required: false
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/opts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/opts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const yamlInputs: Record<string, {default: string}> = (

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

Expand Down

0 comments on commit 246dc48

Please sign in to comment.