Skip to content

build-type: Hooks: Lift restriction regarding per-component builds #10983

Open
@mmhat

Description

@mmhat

I'd like to use build-type: Hooks in a package that has internal sublibraries.
Since packages containing internal sublibraries force a per-component build thaty is currently not possible:

Error:
    Internal libraries only supported with per-component builds.
    Per-component builds were disabled because build-type is Hooks
    In the inplace package 'thrift-lib-0.1.0.1'

More specifically, building thrift-lib requires the compilation of some Thrift interface files to Haskell modules;
See https://github.com/facebookincubator/hsthrift/blob/e84c886276f39f6c55389c1f1bf96f90fe76f49e/Makefile#L29 for how it is currently done. As this compilation can be done per component, I wanted to add per-component hooks for the generation of the Haskell sources.
If a SetupHook files specifies only per-component hooks, then it should be safe to allow this in a per-component build, shouldn't it?

Related issue: #4548 #10966

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