Files
devstar-create-from-template/contrib/update_dependencies.sh
2025-08-25 15:46:12 +08:00

9 lines
224 B
Bash

#!/usr/bin/env bash
grep 'git' go.mod | grep '\.com' | grep -v indirect | grep -v replace | cut -f 2 | cut -d ' ' -f 1 | while read line; do
go get -u "$line"
make vendor
git add .
git commit -m "update $line"
done