My work around is to compile using  -ldflags="-s -w"

This has worked for the cases when my files make Windows unhappy.  I 
reported it as a bug to Microsoft months ago; I see that they got right on 
it.

--rob solomon


On Wednesday, May 11, 2022 at 11:50:20 AM UTC-4 Rusco wrote:

> Regarding: "compile a simple helloworld main ...": 
>
> My workaround is to insert a
>   import "C"
> among the other imports. It somehow alters the structure of the binary 
> created and my av no more recognizes the binary. This is actually something 
> which never happened when I am doing some Rust work.  
>
> Might help.
>
>
> On Friday, 29 April 2022 at 11:22:38 UTC+1 Paolo C. wrote:
>
>> Hello,
>> I noticed that if you download golang portable zip for aMD64 and upload 
>> the
>> go.exe or gofnt.exe to virustotal one av complains.
>> If you compile a simple helloword main and upload, 4 or 5 minor av 
>> complain.
>> Anyone has this issue too?
>> I tested this from many machines, some completely virgin, so it should 
>> not be my environment.
>> Thanks
>> Paolo
>>
>

-- 
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/a5f8bcca-6ee7-4af0-939c-95165bc07844n%40googlegroups.com.

Reply via email to