From 6f561038c837233a42c9fdb17aab3ab93739e34d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 10 Aug 2023 09:41:24 -0400 Subject: [PATCH] chore: update to use go1.21 Signed-off-by: Rui Chen --- .github/workflows/windows-validation.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/windows-validation.yml b/.github/workflows/windows-validation.yml index 6890d07bc..53e6af909 100644 --- a/.github/workflows/windows-validation.yml +++ b/.github/workflows/windows-validation.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: cache: [false, true] - go: [1.20.1] + go: [1.21.0] steps: - uses: actions/checkout@v3 @@ -61,7 +61,7 @@ jobs: echo 'which go should return "/c/hostedtoolcache/windows/go/${{ matrix.go }}/x64/bin/go"' exit 1 fi - if [ $(go env GOROOT) != 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64' ];then + if [ $(go env GOROOT) != 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64' ];then echo 'go env GOROOT should return "C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64"' exit 1 fi diff --git a/README.md b/README.md index 6dafed1f9..aa7fadece 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,10 @@ steps: > **Note**: Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks: > > ```yaml -> go-version: '1.20' +> go-version: '1.21' > ``` > -> The recommendation is based on the YAML parser's behavior, which interprets non-wrapped values as numbers and, in the case of version 1.20, trims it down to 1.2, which may not be very obvious. +> The recommendation is based on the YAML parser's behavior, which interprets non-wrapped values as numbers and, in the case of version 1.21, trims it down to 1.2, which may not be very obvious. Matching an unstable pre-release: ```yaml