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

Choco: install cabal before ghc #214

@andreasabel

Description

@andreasabel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions