Commit 7bd8399
authored
magetasks: Set GOTOOLCHAIN=auto when installing Golang dependencies (#40)
build: Set GOTOOLCHAIN=auto when installing dependencies
Set the `GOTOOLCHAIN` environment variable to "auto" when running `go install` for dependencies.
This leverages the Go 1.21+ feature to automatically download and use the Go toolchain version specified in the dependency's `go.mod` file. This improves build reproducibility and simplifies environment setup by removing the need to have a specific Go version pre-installed.1 parent e9fe9e8 commit 7bd8399
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments