Pre-Commit hook that verifies vgn and submodules:
- Each submodule must have a
vgn-version.txt
file at the root that matches vgn version ingo.mod
. - No submodules can have pending changes.
- Replace is not being used in
go.mod
to redirectgo.kwusen.ca/vgn
to a local directory.
Add this to the .pre-commit-config.yaml
file:
- repo: https://github.com/Kwusen/pre-commit-vgn-verify
rev: 'v0.0.2'
hooks:
- id: verify-vgn