Skip to content

cabal check fails (exitcode 1), but produces warnings only, no error #8880

Closed
@andreasabel

Description

@andreasabel

I am getting a failure from cabal check (3.10.1.0) with the following warnings:
https://github.com/diagrams/active/actions/runs/4546584124/jobs/8015396504?pr=41#step:21:21

Warning: These warnings may cause trouble when distributing the package:
Warning: Please consider moving the file 'CHANGES' from the
'extra-source-files' section of the .cabal file to the section
'extra-doc-files'.
Warning: These packages miss upper bounds:
- doctest
Please add them, using `cabal gen-bounds` for suggestions. For more
information see: https://pvp.haskell.org/
Warning: The following errors will cause portability problems on other
environments:
Warning: The dependency 'setup-depends: 'Cabal' does not specify an upper
bound on the version number. Each major release of the 'Cabal' package changes
the API in various ways and most packages will need some changes to compile
with it. If you are not sure what upper bound to use then use the next major
version.
Warning: Hackage would reject this package.
Error: Process completed with exit code 1.

I wish for a clearer communication of the problems:

  • Which of these is just a recommendation (warning), and which leads to the exit code 1 (error)?
  • Which of these prompts Hackage to reject the package?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions