This repository was archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Choco: install cabal before ghc #214
Copy link
Copy link
Open
Labels
platform: windowsre: cabalOn setting up cabalOn setting up cabalre: chocoConcerning installation via chocolatey (windows)Concerning installation via chocolatey (windows)
Description
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:
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.
Metadata
Metadata
Assignees
Labels
platform: windowsre: cabalOn setting up cabalOn setting up cabalre: chocoConcerning installation via chocolatey (windows)Concerning installation via chocolatey (windows)