Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Choco: install cabal before ghc #214

Open
andreasabel opened this issue Mar 16, 2023 · 0 comments
Open

Choco: install cabal before ghc #214

andreasabel opened this issue Mar 16, 2023 · 0 comments
Labels
platform: windows re: cabal On setting up cabal re: choco Concerning installation via chocolatey (windows)

Comments

@andreasabel
Copy link
Member

Lifted from

Implementing @Mistuke's suggestion to install cabal before ghc would amount to swapping the entries in the opts record, which implicitly determines the order of installation:

actions/setup/src/opts.ts

Lines 161 to 187 in 86bd3ed

const opts: Options = {
ghc: {
raw: verInpt.ghc,
resolved: resolve(
verInpt.ghc,
ghc.supported,
'ghc',
os,
ghcEnable // if true: inform user about resolution
),
enable: ghcEnable
},
ghcup: {
releaseChannel: ghcupReleaseChannel
},
cabal: {
raw: verInpt.cabal,
resolved: resolve(
verInpt.cabal,
cabal.supported,
'cabal',
os,
cabalEnable // if true: inform user about resolution
),
enable: cabalEnable,
update: cabalUpdate
},

We could then drop again the --ignore-dependencies flag passed to choco.

@andreasabel andreasabel added platform: windows re: choco Concerning installation via chocolatey (windows) re: cabal On setting up cabal labels Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: windows re: cabal On setting up cabal re: choco Concerning installation via chocolatey (windows)
Projects
None yet
Development

No branches or pull requests

1 participant