Skip to content

Commit

Permalink
Re #6377 Deprecate Stack support for Cabal < 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Dec 14, 2023
1 parent d0268a3 commit e95984c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ Behavior changes:
be configured in parallel. This increases the effective concurrency of builds
that before would use fewer threads. Reconsider your `--jobs` setting
accordingly. See [#84](https://github.com/commercialhaskell/stack/issues/84).
* Stack warns that its support for Cabal versions before `2.2.0.0` is deprecated
and may be removed in the next version of Stack. Removal would mean that
projects using snapshots earlier than `lts-12.0` or `nightly-2018-03-18`
(GHC 8.4.1) might no longer build. See
[#6377](https://github.com/commercialhaskell/stack/issues/6377).

Other enhancements:

Expand Down
9 changes: 9 additions & 0 deletions src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,15 @@ warnUnsupportedCompilerCabal cp didWarn = do
\resolver. Acceptable resolvers: lts-7.0/nightly-2016-05-26 \
\or later."
]
| cabalVersion < mkVersion [2, 2, 0] -> do
prettyWarnL
[ flow "Stack's support of Cabal versions below 2.2.0.0 is \
\deprecated and may be removed from the next version of \
\ Stack. Cabal version"
, fromString (versionString cabalVersion)
, flow "was found. Consider using a resolver that is \
\lts-12.0 or later or nightly-2018-03-13 or later."
]
| cabalVersion >= mkVersion [3, 11] && notifyIfCabalUntested ->
prettyWarnL
[ flow "Stack has not been tested with Cabal versions 3.12 and \
Expand Down

0 comments on commit e95984c

Please sign in to comment.