I’m new to Go, but it doesn’t help when your anti virus detects the build output as a virus. Using the most basic “program” I get a virus warning:
The file C:\Users\MyUser\AppData\Local\Temp\go-build243796474\b001\exe\tempCodeRunnerFile.exe is infected with Gen:Variant.Bulz.245297. The threat has been successfully blocked, your device is safe
BitDefender have been looking into this for a while now and I haven’t had a solution to this. They’ve also said that I can’t cancel for a refund as I’ve had their AV for more than 30 days, although it isn’t exactly fit for purpose.
I tried that, but because the folder name is random I’d have to exclude the whole \Local\Temp folder which would expose a lot of risks.
They also don’t allow wild card exclusions, so I can’t exclude \Local\Temp\go-build*
good call - they mention about setting the GOCACHE variable, however setting the environment variable is GOCACHE=c:\go-cache, I still get the av picking it up in \local\temp\go-build
I’ll keep having a look.
go build main.go will produce the main.exe and that can be ran without the av complaining