You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hook repository must contain go source code. It will be installed via go install ./....
pre-commit will create an isolated GOPATH for each hook and the entry should match an executable which will get installed into the GOPATH's bin directory.
When I clone this repo and do go install ./... from the root, nothing new shows up in my $GOBIN directory.
This seems to be because cmd/jv/go.mod exists and the main.go file there in that directory is inside a different Go module.
With that cmd/jv/go.mod removed, the barebones .pre-commit-hooks.yaml file would start from something like this:
id: jsonschema-validatename: Validate JSON against JSON Schemaentry: jvlanguage: golang
More details on fields for the above YAML are here.
Hi,
Are you open to provide a
.pre-commit-hooks.yaml
to use thejv
CLI insidepre-commit
?Thanks !
The text was updated successfully, but these errors were encountered: