github TekWizely/pre-commit-golang v0.6.1
Module-Specific Hooks : v0.6.1

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

Release v0.6.1

I added a few Module-centric hooks:

  • go-build-mod
  • go-test-mod
  • go-vet-mod
  • golangci-lint-mod
  • golangci-lint-mod-fix

These hooks will walk up the path of each staged file, looking for a go.mod file. The directory containing the go.mod file will be considered a "module-root"

The command (build, test, vet...) will be executed with each module-root being the target.

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

NewReleases is sending notifications on new releases.