Skip to content

Commit a852e3b

Browse files
committed
chore: update to use go1.21
Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent 883490d commit a852e3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/windows-validation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
cache: [false, true]
20-
go: [1.20.1]
20+
go: [1.21.0]
2121
steps:
2222
- uses: actions/checkout@v3
2323

@@ -61,7 +61,7 @@ jobs:
6161
echo 'which go should return "/c/hostedtoolcache/windows/go/${{ matrix.go }}/x64/bin/go"'
6262
exit 1
6363
fi
64-
if [ $(go env GOROOT) != 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64' ];then
64+
if [ $(go env GOROOT) != 'C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64' ];then
6565
echo 'go env GOROOT should return "C:\hostedtoolcache\windows\go\${{ matrix.go }}\x64"'
6666
exit 1
6767
fi

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ steps:
6161
> **Note**: Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks:
6262
>
6363
> ```yaml
64-
> go-version: '1.20'
64+
> go-version: '1.21'
6565
> ```
6666
>
67-
> 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.
67+
> 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.
6868
Matching an unstable pre-release:
6969

7070
```yaml

0 commit comments

Comments
 (0)