Skip to content

Add a flake check for hpack <-> .cabal consistency #97

@srid

Description

@srid

Based on #90 (comment)

Create a hpackCheck (analogous to the existing hlsCheck) if (and only if) the repository has both hpack and cabal files. The check will succeed only if running hpack generates the same cabal file.

This is useful in workflows where developers commit the generated cabal file to Git repo. The check will ensure that nobody has forgotten to commit package.yaml without the corresponding .cabal change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions