Skip to content

Commit

Permalink
Fix commit message when bumping golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
bgandon committed May 10, 2024
1 parent 39a67eb commit 3bae0a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ci/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,16 @@ jobs:
| xargs -0 -I{} cp -a {} "repo-bumped"
cd "repo-bumped" || exit 115
awk '/^go /{print $2}' go.mod > ../golang-info/previous-version
awk '/^toolchain /{sub(/go/,"",$2); print $2}' go.mod \
> ../golang-info/previous-version
(
set -x
toolchain_version=$(go version | awk '{print $3}')
go_version=$(
go version | awk '{sub(/go/,"",$3); print $3}'
)
go_version=${toolchain_version#"go"}
inferred_go_min_version="${go_version%.*}.0"
sed -i -Ee "s/^go [[:digit:].]+\$/go ${inferred_go_min_version}/" go.mod
sed -i -Ee "s/^toolchain go[[:digit:].]+\$/toolchain ${toolchain_version}/" go.mod
go get -t -u ./...
go mod tidy
Expand Down

0 comments on commit 3bae0a6

Please sign in to comment.