redis/scripts/bump_deps.sh

10 lines
251 B
Bash
Raw Permalink Normal View History

2021-08-12 14:24:39 +03:00
PACKAGE_DIRS=$(find . -mindepth 2 -type f -name 'go.mod' -exec dirname {} \; \
| sed 's/^\.\///' \
| sort)
for dir in $PACKAGE_DIRS
do
printf "${dir}: go get -u ./... && go mod tidy\n"
(cd ./${dir} && go get -u ./... && go mod tidy)
done