-
Notifications
You must be signed in to change notification settings - Fork 18k
Compilator takes unpredictable build times and I have no idea what it's doing and why it's doing #70691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
if -v -x don't show anything, then something is blocking go, most likely antivirus or other security software. go can't know why it's being blocked. |
@seankhliao But first log is there. The rest takes too long. Do you have some suggestions for windows ? I disabled firewall for tmp folder, for folder where project is,... (wsl ubuntu looks like it has no problem) Also in Rust or C++ there is no problem with it ,... and they work on similar principles |
@seankhliao I probably achieved victory,... I installed avast which disabled windows defender, in avast I put exception to User/AppData for "go" and "go-build" folders, performance looks amazing and startup times are sometimes logner, but I'm talking about seconds, not minutes.... (BTW, in windwos I had also exclude folder, didn't help) This is small step for man, but big for humanity. |
Go version
go1.21.1 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Hi after running
go run
command I have unpredictable start times, sometimes, I change something in file like adding log and it compiles in while and sometimes I add log and dogo run -x main.go
I got log WORK=Z:\golang\go-build3974498775
and I'm waiting, and I have no idea what is happening or what is progress of it, and just before build I got full log and app is running.
There can be maybe something in templates ? I use them a lot.
And also I put build directory and go under firewall exclusion and created windows dev drive to minimalize times but nothing helped.
What did you see happen?
Nothing and I hate those predefined github templates
What did you expect to see?
Could be nice to log more of golang progress and maybe decision ? Like "You added + sign so I'm going to rebuild whole application" or something similar. My final build is 22 MB so no big application I guess.
The text was updated successfully, but these errors were encountered: