概述
在 goland 里 debug 启动 go 项目的时候,有时候会出现以下的报错:
open C:\Users\silverwq\AppData\Local\Temp\go-build1609048180\b001\exe\a.out.exe: The process cannot access the file because it is being used by another process.
go: failed to remove work dir: remove C:\Users\silverwq\AppData\Local\Temp\go-build1609048180\b001\exe\a.out.exe: The process cannot access the file because it is being used by another process.
问题分析
其实就是因为杀毒软件监控该文件,只需要关闭杀毒软件,或者把该目录加入信任区就完美解决了