Skip to content

Commit

Permalink
bump-deps.sh: update for min go1.21; max go1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed May 9, 2024
1 parent b05c3b9 commit 6388b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bump-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

set -euo pipefail

minlang="1.19"
minlang="1.21"
maxlang="1.22"
for modfile in $(find . -name 'go.mod' -print0 | xargs -0)
do
moddir=$(dirname "$modfile")
Expand All @@ -17,7 +18,7 @@ do
lang=" -go=$filelang"
fi
if [[ $(pwd) == *"/franz-go/examples/"* ]]; then
lang=" -go=1.20"
lang=" -go=$maxlang"
fi
go get -u ./...; go mod tidy $lang
cd - >/dev/null
Expand Down

0 comments on commit 6388b6b

Please sign in to comment.