Skip to content

Pre-Commit hook that makes sure the version of vgn is correct in submodules and submodules are clean.

Notifications You must be signed in to change notification settings

Kwusen/pre-commit-vgn-verify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Verify VGN and submodules

Pre-Commit hook that verifies vgn and submodules:

  • Each submodule must have a vgn-version.txt file at the root that matches vgn version in go.mod.
  • No submodules can have pending changes.
  • Replace is not being used in go.mod to redirect go.kwusen.ca/vgn to a local directory.

Install

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

About

Pre-Commit hook that makes sure the version of vgn is correct in submodules and submodules are clean.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages