Error go: no such tool "vet" when running tests

I have go version go1.23.0 windows/amd64 installed in my machine.

However, when I try to run tests with “go test” I get an error message:

go: no such tool “vet”

I am new to GoLang, so I have no idea where to start looking for answers.

Has anyone encountered this error when running Go tests locally with Exercism?

Can you give some more information?

  • Did you download the exercise using the exercism CLI?
  • In which directory are you running the go test command?
  • Which files did you edit?
  • What happens, when you try your code in the online environment?

Please use code blocks to show code or output, not screenshots.

I’m neither a Go expert nor a Windows expert, but I’ve done some googling and found this: cmd/go: no such tool "vet" when running go test · Issue #26864 · golang/go · GitHub

Somebody experienced a similar issue and it turned out to be caused by their antivirus blocking some go binaries from executing. Are you using an antivirus? Can you check whether it has mistakenly marked Go as a virus?

1 Like

here more info

  • I downloaded the exercise with exercism CLI
  • I am runnig the go test in the exercise library (root of the exercise)
  • I only edited the “weather_forecast.go” file, not the others
  • In the online environment I do not get errors.

I will try to remove everything and download again

Well, this was it … I had to add an exception for McAfee.

Now it runs smoothly.

I don’t know how I could not find that before.

Thanks anyway

2 Likes