Forum Discussion
Dean_Schulze
Oct 31, 2022Copper Contributor
The default azure-pipelines.yml is broken
Create a new project. Create an azure repo and clone it with ssh. Run go mod init and create a main.go file in the cloned repo. Commit and push the changes. Create a pipeline using your repo. An...
Jamony
Jul 01, 2026MCT
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.