Modern Go toolchains (available at the base image) can automatically
install the required version of Go based on the `go.mod` file, so we can
remove the `actions/setup-go` step from the workflow.
We keep the minimum required Go version in the `go.mod` file for broad
compatibility (1.19), but we use a more recent version when interacting
with the code (e.g. `go test` in the existing update.yml workflow).
go get toolchain@latest
https://go.dev/blog/toolchain#:~:text=Or%20if%20you%20want%20to%20start%20using,toolchain%20version%20using%20the%20GOTOOLCHAIN%20environment%20variable.
6 lines
65 B
AMPL
6 lines
65 B
AMPL
module github.com/rhcarvalho/cedict
|
|
|
|
go 1.19
|
|
|
|
toolchain go1.26.5
|