10 lines
162 B
Bash
10 lines
162 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
for modfile in $(find . -name go.mod); do
|
||
|
echo "Updating $modfile"
|
||
|
DIR=$(dirname $modfile)
|
||
|
(cd $DIR; go mod tidy)
|
||
|
done
|