From 97999f16f76b73613e9bd3de833dd593141e8509 Mon Sep 17 00:00:00 2001 From: Sven Giermann Date: Mon, 7 Sep 2026 14:07:13 +0200 Subject: [PATCH 1/3] Add 'installGoTools' option to devcontainer feature Added 'installGoTools' option to specify installation of common Go tools. --- src/go/devcontainer-feature.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/go/devcontainer-feature.json b/src/go/devcontainer-feature.json index b61e93605..7169115dd 100644 --- a/src/go/devcontainer-feature.json +++ b/src/go/devcontainer-feature.json @@ -20,7 +20,12 @@ "type": "string", "default": "latest", "description": "Version of golangci-lint to install" - } + }, + "installGoTools": { + "type": "boolean", + "default": true, + "description": "Install common Go tools (gopls, staticcheck, golint, revive, dlv, gomodifytags, goplay, gotests, impl, golangci-lint). Set to false to skip - useful when your postCreateCommand or CI already installs the tools it needs, or when you just want `go build`/`go install` support without the extra download/compile time." + } }, "init": true, "customizations": { From 90c90315b91eb84a76e8e7aa52876d2b7bc27629 Mon Sep 17 00:00:00 2001 From: Sven Giermann Date: Mon, 7 Sep 2026 14:09:51 +0200 Subject: [PATCH 2/3] Enable setting of INSTALL_GO_TOOLS with official camelCase option --- src/go/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/install.sh b/src/go/install.sh index db0ac7977..3e5c95e24 100755 --- a/src/go/install.sh +++ b/src/go/install.sh @@ -9,11 +9,11 @@ TARGET_GO_VERSION="${VERSION:-"latest"}" GOLANGCILINT_VERSION="${GOLANGCILINTVERSION:-"latest"}" +INSTALL_GO_TOOLS="${INSTALLGOTOOLS:-"true"}" TARGET_GOROOT="${TARGET_GOROOT:-"/usr/local/go"}" TARGET_GOPATH="${TARGET_GOPATH:-"/go"}" USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}" -INSTALL_GO_TOOLS="${INSTALL_GO_TOOLS:-"true"}" # https://www.google.com/linuxrepositories/ GO_GPG_KEY_URI="https://dl.google.com/linux/linux_signing_key.pub" From 573cc7749c5385db93dbaca6997137fc507b9a84 Mon Sep 17 00:00:00 2001 From: Sven Giermann Date: Mon, 7 Sep 2026 14:12:54 +0200 Subject: [PATCH 3/3] Add 'installGoTools' option to Go README Added 'installGoTools' option to README for Go tools installation. --- src/go/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/go/README.md b/src/go/README.md index 5f35da948..e6a75f608 100644 --- a/src/go/README.md +++ b/src/go/README.md @@ -17,6 +17,7 @@ Installs Go and common Go utilities. Auto-detects latest version and installs ne |-----|-----|-----|-----| | version | Select or enter a Go version to install | string | latest | | golangciLintVersion | Version of golangci-lint to install | string | latest | +| installGoTools | Install common Go tools | boolean | true | ## Customizations