Forum Discussion
The default azure-pipelines.yml is broken
Hi, that sample looks like an older Go pipeline pattern. The dep tool and Gopkg.toml approach are legacy now, so for most current Go projects I’d switch the pipeline to Go modules. Use go mod download, then go test ./..., then go build ./... or build the specific module path. Also make sure the pipeline uses the correct working directory and a current Go version with the GoTool task or a hosted image that already includes the version you need.
- Kidd_IpJul 14, 2026MVP
The default azure-pipelines.yml for Go is outdated because it hardcodes GOROOT: /usr/local/go1.11, which no longer exists on hosted agents. Please try to fix by remove or override the GOROOT variable and instead use the GoTool@0 task to install the correct Go version, learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/go?view=azure-devops&tabs=go-current