On Wed, Dec 15, 2021 at 4:55 PM rob <drrob...@gmail.com> wrote: > > 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
See https://go.dev/doc/faq#virus . Ian -- 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/CAOyqgcXqMm9hSf79WueHC5pR7_R0R-pwWzQp-cyhdmReU6UGrQ%40mail.gmail.com.