Skip to content

Commit 463016b

Browse files
Upgrade devcontainer go version to 1.24.6 (#35298)
Addresses go version mismatch when using the devcontainer as a result of [this commit](793815a) (bumps Go version from 1.24.5 to 1.24.6) The current official devcontainer Go image used in this repository (`1.24-bookworm`) uses 1.24.5 and sets GOTOOLCHAIN to local. This PR overrides it to auto so that build commands automatically update to the correct version. --------- Signed-off-by: Jackson Stewart <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 57b8441 commit 463016b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "Gitea DevContainer",
33
"image": "mcr.microsoft.com/devcontainers/go:1.24-bookworm",
4+
"containerEnv": {
5+
// override "local" from packaged version
6+
"GOTOOLCHAIN": "auto"
7+
},
48
"features": {
59
// installs nodejs into container
610
"ghcr.io/devcontainers/features/node:1": {

0 commit comments

Comments
 (0)