code.gitea.io/gitea@v1.22.3/contrib/update_dependencies.sh (about) 1 #!/usr/bin/env bash 2 3 grep 'git' go.mod | grep '\.com' | grep -v indirect | grep -v replace | cut -f 2 | cut -d ' ' -f 1 | while read line; do 4 go get -u "$line" 5 make vendor 6 git add . 7 git commit -m "update $line" 8 done