Commit eef9d7e
ci: use local Go toolchain and downgrade Go version
The GitHub Actions workflow defines:
```yaml
strategy:
matrix:
go: ['1.23', '1.24']
```
However, the `1.23` job still ends up running Go `1.24`. By default,
`actions/setup-go` leaves `GOTOOLCHAIN=auto`, causing go itself to fetch the
version specified in `go.mod` instead instead of sticking to exactly `1.23`.
This led to a false positive in CI: it appeared as if the matrix was testing
Go `1.23`, when in reality all jobs were using Go `1.24`.
To fix this, we need to force the use of the local Go toolchain in the CI test
workflow to ensure the use of the locally installed Go version and avoid
automatic downloads by `setup-go`.
Also downgrades the Go version in `go.mod` from `1.24` to `1.23` to ensure
compatibility with environments that do not yet support Go `1.24`.
Fixes #1261 parent 2293221 commit eef9d7e
3 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments