github.com/fastly/go-fastly/v6@v6.8.0/scripts/check-mod.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  echo "==> Checking that the module is clean..."
     4  
     5  go mod download
     6  tidy=$(go mod tidy -v 2>&1)
     7  if [[ ${tidy} ]]; then
     8      echo 'Extranenous dependencies need removed.'
     9      echo " ===== "
    10      echo "${tidy}"
    11      echo " ===== "
    12      echo "You can use the command: \`make tidy\` to remove these dependencies."
    13      git checkout go.*
    14      exit 1
    15  fi