Skip to content

Changes to SetupHooks.hs when using build-type: Hooks do not cause the module to be recompiled #11350

@jorisdral

Description

@jorisdral

Describe the bug

In a project with a build-type: Hooks, changes to the SetupHooks.hs module do not cause it to be recompiled, and therefore the changed SetupHooks.hs is not used when rebuilding or reconfiguring the package it belongs to.

To Reproduce
Steps to reproduce the behavior:

The second cabal build does not recompile SetupHooks.hs

Expected behavior

Changes to SetupHooks.hs should be detected so that it can be recompiled before configuring and compiling the rest of the packages

System information

  • OS: Ubuntu 22.04
  • GHC: ghc-9.6.7
  • cabal: cabal-3.14.2.0 or cabal-3.16.0.0

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