I am compiling my own code using Go 1.17.5 (also happens w/ other versions)

When I compile this code on my computer running win 10 21H1 64-bit system using "go install", the resulting exe file bothers windows anti-virus a lot.  This is what I see

       Behavior:Win32/Execution.A!ml  Severe

And Windows deletes the file.


I have discovered that if I compile using

        go install -ldflags="-s -w"

Windows does not flag the exe file as dirty and delete it.


Some of my code causes this when compiled, but most does not.


Why is this happening?  I don't think my Win 10 setup is so unusual.  This has been happening for months; I saw this behavior also when compiling using earlier versions of Go 1.17, and also Go 1.16

I don't remember it happening before Go 1.16

--rob solomon


--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c2a0c626-ec70-f797-d37f-1970c18ea8f7%40gmail.com.

Reply via email to