Skip to content

Unexpected Cabal version warning #2988

@PierreVDL

Description

@PierreVDL

When I run stack (Version 1.3.2, Git revision 3f67514 x86_64 hpack-0.15.0) with a stack.yaml file that contains as resolver lts-7.19
and a cabal file that requires a cabal-version of at least 1.23 (i.e. cabal-version: >=1.23)
I get the following warning:
Cabal file warning in <file.cabal>: This package requires at least Cabal version 1.23

However, lts 7.19 has Cabal-1.24.2.0 according to https://www.stackage.org/lts-7.19.
So I don't understand the warning!

Also running stack install Cabal yields the same error.
When I run stack install Cabal at another location, it succeeded. See the zipped version of the log file at
C:\sr\global-project\.stack-work\logs\Cabal-1.24.2.0.log
Cabal-1.24.2.0.zip

Yet, I keep getting the same Cabal file warning!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions