Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: realtebo on March 31, 2023, 11:27:46 AM

Title: golang - how to avoid false positive at every and each run?!
Post by: realtebo on March 31, 2023, 11:27:46 AM
I am a go language programmer.

I am very bored and tired to disable Avast when programming because at every and each single `go run`, avast blocks the newly created executable.

Even the smallest and dumbest go executable created is blocked.

I cannot exclude entire temp folder from avast just to workaround this and AFAIK there is no way to exclude using wildcards.
Title: Re: golang - how to avoid false positive at every and each run?!
Post by: Rundvleeskroket on March 31, 2023, 01:40:56 PM
Wildcards should work.

Maybe have these executables run from a separate temp folder and exclude that.
Title: Re: golang - how to avoid false positive at every and each run?!
Post by: DavidR on March 31, 2023, 05:42:45 PM
As has been said, the wildcards should work, I have one set for some samples.

A screenshot of the Avast Alert, with the Details option selected my help to determine why your exception isn't working.
Could it be that it isn't running in isolation in that folder.
Title: Re: golang - how to avoid false positive at every and each run?!
Post by: Juliana B. on February 17, 2024, 02:09:46 AM
I managed to stop the blocking by adding the following wildcard exception under Avast's Menu > Settings > General > Exceptions:
Code: [Select]
C:\Users\<YourUser>\AppData\Local\Temp\go-build*\b*\exe\*.exe
* <YourUser> should be the name of your user folder.