github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/githooks/pre-commit (about)

     1  #!/bin/sh
     2  set -e
     3  
     4  echo "Running golangci-lint checker..."
     5  "${GOBIN}"/golangci-lint run
     6  echo "No linting issues found."
     7  
     8  echo "Running go.mod checker..."
     9  go mod tidy
    10  git diff --exit-code ./go.mod # check no changes
    11  git diff --exit-code ./go.sum # check no changes
    12  echo "No go.mod issues found."