1#!/bin/bash 2 3for dir in $(find . -name 'go.mod' | perl -pe 's{/go.mod$}{}'); do 4 pushd "$dir" 5 go mod tidy 6 popd 7done
View as plain text