リポジトリのトップなどで以下のコマンドを実行する。 for v in `find . -name "go.mod" | xargs -I {} dirname {}` do echo $v cd $v go mod tidy cd - >> /dev/null done