Do you think it would be possible to make some changes to the build process of checkmake in order to integrate it as a pre-commit hook ?
There are 2 options I think:
the simplest : make it installable with a simple go get ./...
use a common tool instead. I don't know much about the Go ecosystem : maybe gb or gom ? And then we would check with the pre-commit dev team if they are OK to support it.
Hi.
Some devs at Yelp have written a CLI tool to register & run git pre-commit hooks easily : http://pre-commit.com
I've contributed a few hooks myself in Python, and they just added support for Go hooks: https://github.com/pre-commit/pre-commit/issues/430
Hence I tried to add a
checkmake
-based hook : https://github.com/Lucas-C/pre-commit-hooks-goHowever the fact that it requires a
make
invocation to build makes it "non standard". At the moment,pre-commit
only supportgo get ./...
+ the installation of additional dependencies: https://github.com/pre-commit/pre-commit/blob/master/pre_commit/languages/golang.py#L67Do you think it would be possible to make some changes to the build process of
checkmake
in order to integrate it as apre-commit
hook ?There are 2 options I think:
go get ./...
gb
orgom
? And then we would check with thepre-commit
dev team if they are OK to support it.