I have multiple go versions installed, 1.20.5 and 1.17.9
I am using Go 1.17.9 for this project as when I run go version
I get go version go1.17.9 linux/amd64
Using run and debug in delve, with my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"envFile": "${workspaceFolder}/.env",
}
]
}
I get: "Version of Delve is too old for Go version 1.20.5 (maximum supported version 1.18, suppress this error with --check-go-version=false)"
How can I make it so that Go version 1.17.9 is used in Run and Debug?