github.com/dylandreimerink/gobpfld@v0.6.1-0.20220205171531-e79c330ad608/tools/check-go-mod.sh (about)

     1  #!/bin/bash
     2  set -e
     3  go mod tidy
     4  STATUS=$( git status --porcelain go.mod go.sum )
     5  if [ ! -z "$STATUS" ]; then
     6      echo "Running go mod tidy modified go.mod and/or go.sum"
     7      exit 1
     8  fi
     9  exit 0