Skip to content

Install hooks from Scalar installed components #301

@derrickstolee

Description

@derrickstolee

Right now, we install the Watchman integration by copying the fsmonitor-watchman.sample hook in the .git/hooks directory to query-watchman. This relies on the Git repo being initialized by a version of Git including the latest hook.

We should instead use our own hook provided with Scalar, so this upgrades as new versions of the hook are available.

  1. One approach would be to provide the hook contents as a text string in Scalar, then write it to the query-watchman hook (with appropriate execution permissions).

  2. Another that @kewillford mentioned is that we may want a native hook instead of a perl script. That would be an interesting inclusion, but should it build with Scalar or with Git? How do we access the latest hook to place it in the right spot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions