commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Make `stack path` require ghc for less options #6484

Closed deemp closed 4 months ago

deemp commented 4 months ago

In https://github.com/freckle/stack-action/issues/33, we discussed how to prevent stack from downloading GHC before restoring stack dependencies in CI because they can already include a GHC.

More specifically, we need stack path --programs to not trigger a GHC download in GitHub Actions. Is it doable?

I see that a similar issue was resolved for stack path --stack-root (https://github.com/commercialhaskell/stack/issues/6340).

What other options can be decouple from GHC downloads?

mpilgrem commented 4 months ago

@deemp, I think that should be possible, with a bit of re-jigging of the code.

mpilgrem commented 4 months ago

@deemp, this is now implemented in the master branch version of Stack.

deemp commented 4 months ago

@mpilgrem, thank you! Will you please make a release?

mpilgrem commented 4 months ago

Stack 2.17.1 will likely come sooner than my usual quarterly rhythmn for releases. However, as 2.15.1 was only released a week ago it will be a few weeks yet.

mpilgrem commented 4 months ago

@deemp, Stack 2.15.3 is released, with this behaviour change.

deemp commented 4 months ago

Thank you!