Skip to content

install hook (Custom setup) is not called on Setup copy/register #1805

@anton-dessiatov

Description

@anton-dessiatov

Summary by @ezyang. Install hooks are called when ./Setup install is invoked, but this command was misguided because it's just a combination of copy and register. Some design discussion is at dda6ffe#commitcomment-6290689


After upgrading to cabal 1.20 my custom builds no longer work because of an instHook not being called. I've created a repository that has "die" function in its instHook and still invoking "cabal install" on it doesn't result in an error message.

You may see an example of what I'm talking about in my https://github.com/anton-dessiatov/dummy_cabal repository. I'm expecting that invoking "cabal install" on that dummy project writes "MY INSTALL HOOK!" and fails, but it doesn't print anything and finishes successfully.

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