Skip to content

hpack on wrong version yet stack build does not fail #6057

@xave

Description

@xave

General summary/comments (optional)

Steps to reproduce

For example:

  1. hpack on wrong version
  2. run stack build ... --file-watch
  3. get message stating
foo.cabal was generated with a newer version of hpack,
please upgrade and try again.

Success! Waiting for next file change

For reference, the code to be compiled included an obviously malformed line that should have triggered an error, yet a Success! was output:

qehww = ::

Expected

Stack build fails if hpack is not correct

Actual

Stack version

stack --version
Version 2.9.1, Git revision 13c9c8772a6dce093dbeacc08bb5877bdb6cfc2e (dirty) (155 commits) aarch64

Method of installation

  • Via GHCup

Platform

macOS M1 v 12.6.3

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