1#!/usr/bin/env bash 2 3set -euo pipefail 4 5for modfile in $(find . -name go.mod); do 6 echo "Updating $modfile" 7 DIR=$(dirname $modfile) 8 if [[ $DIR == *"testdata"* ]]; then 9 echo "Skipping testdata directory" 10 continue 11 fi 12 (cd $DIR; go mod tidy) 13done 14 15