Skip to content

Commit

Permalink
Merge pull request #1702 from paketo-buildpacks/fix-go-update
Browse files Browse the repository at this point in the history
Strip patch version off Go version
  • Loading branch information
anthonydahanne authored Aug 19, 2024
2 parents 115d6d4 + e5513ea commit 3c2b1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octo/update-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -z "${GO_VERSION:-}" ]; then
exit 1
fi

OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2)
OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2 | cut -d '.' -f 1-2)

go mod edit -go="$GO_VERSION"
go mod tidy
Expand Down

0 comments on commit 3c2b1f0

Please sign in to comment.