github TekWizely/pre-commit-golang v0.6.0
Full Looping; Directory-Based + Packaged-Based Hooks : v0.6.0

latest releases: v1.0.0-rc.1, v1.0.0-beta.5, v1.0.0-beta.4...
5 years ago

Release v0.6.0

Delayed Error == More Error Messages

For hooks that loop over the input file list, I updated the loop pattern so I could run over the entire loop, instead of exiting after the first error. This should allow you to see more errors sooner.

Directory-Based Hooks

I also added Directory-Based and Packaged-Based versions of the build, test, vet, and golangci hooks.
Instead of running against each staged file individually, these new hooks will run against the staged file's parent folder.

NOTE: By design, the directory-based hooks only execute against a given directory once per hook invocation.
HOWEVER, due to OS command-line length limits, Pre-Commit can invoke a hook multiple times if a large number of files are staged.

Don't miss a new pre-commit-golang release

NewReleases is sending notifications on new releases.