Skip to content

Wrong Cabal version warnings #3029

@chreekat

Description

@chreekat

While trying to build stack itself, I see the following warning:

Cabal file warning in /home/b/src/Haskell/stack/stack/stack.cabal: Ignoring unknown section type: custom-setup

I'm not sure if this is related to other problems I'm having (deps failing to build with no error message in build logs), but it seems like it's probably a bad thing.

Plus, if I add update stack.cabal to have the appropriate cabal-version>=1.24, I get the additional warning

Cabal file warning in /home/b/src/Haskell/stack/stack/stack.cabal: This package requires at least Cabal version 1.24

Shouldn't that be a critical error?

Also, I see there's a --upgrade-cabal option to stack-setup. However, after running that I still get the same warning.

Stack version

Version 1.3.2, Git revision 3f67514 (4395 commits) x86_64 hpack-0.15.0

Misc

$ stack exec ghc-pkg list Cabal
/home/b/.stack/programs/x86_64-linux/ghc-7.10.3/lib/ghc-7.10.3/package.conf.d
   Cabal-1.22.5.0
   Cabal-1.24.2.0
/home/b/.stack/snapshots/x86_64-linux/lts-6.25/7.10.3/pkgdb
/home/b/src/Haskell/stack/stack/.stack-work/install/x86_64-linux/lts-6.25/7.10.3/pkgdb
   Cabal-1.24.2.0

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