Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: on Windows "The system cannot find the file specified" #26195
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Does anything work at all? Can you create a small hello.go file and run
Since this is Windows one always has to wonder about whether a virus checker is interfering. It looks like something is preventing access to the .a files that the Go compiler creates.
It works for me on go 1.10.3 x64 on Windows 10.
I think the anti-virus hint is most likely. @Siddharthaghosal try disabling all third party anti-virus software.
To debug this issue you can use a tool like Process Monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to see all file activity to narrow down the process that is touching
The error message suggests that some process deletes a file which anti-virus software tends to do.