Skip to content

Commit

Permalink
Fix to handle go.sum
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Sep 18, 2024
1 parent 19a6558 commit 1fc26ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/bump_gomod/bump_gomod.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ for dir in "$@"; do
go get "go@$(go version | grep -oP '(?<=go)\d\S+')"
done

git ls-files '**go.mod' | xargs git add
git ls-files '**go.mod' '**go.sum' | xargs git add
git update-index -q --really-refresh
git diff-index --quiet HEAD || git commit -m 'Update go.mod' go.mod go.sum
git diff-index --quiet HEAD || git commit -m 'Update go.mod and go.sum'

0 comments on commit 1fc26ab

Please sign in to comment.