Author Topic: golang - how to avoid false positive at every and each run?!  (Read 1516 times)

0 Members and 1 Guest are viewing this topic.

Offline realtebo

  • Newbie
  • *
  • Posts: 1
golang - how to avoid false positive at every and each run?!
« 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.

Offline Rundvleeskroket

  • Poster
  • *
  • Posts: 508
Re: golang - how to avoid false positive at every and each run?!
« Reply #1 on: March 31, 2023, 01:40:56 PM »
Wildcards should work.

Maybe have these executables run from a separate temp folder and exclude that.
« Last Edit: March 31, 2023, 02:19:14 PM by Rundvleeskroket »

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89029
  • No support PMs thanks
Re: golang - how to avoid false positive at every and each run?!
« Reply #2 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.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.3.6108 (build 24.3.8975.762) UI 1.0.801/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline Juliana B.

  • Newbie
  • *
  • Posts: 1
Re: golang - how to avoid false positive at every and each run?!
« Reply #3 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.