-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: add go mod tidy all script (#4845)
* feat: add go mod tidy all script * feedback --------- Co-authored-by: Jim Fasarakis-Hilliard <[email protected]>
- Loading branch information
1 parent
0d524ec
commit 9605c9e
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/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 |