Skip to content

HookedBuildInfo can't update test suite build configuration #2932

@rblaze

Description

@rblaze

preBuild hook allows to run some custom actions and update build configuration depending on it's results. In my case it was code generation. The problem is, it was test suite which needed generated modules, and HookedBuildInfo have only fields for updates to library and executables. Without update, test suite still builds, but cabal complains about generated not being added to other-modules list.

It would be great to be able to update configurations for all targets, including test suites.

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