air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
17.62k stars 804 forks source link

Multiple buildRuns still run simultaneously #473

Closed suntong closed 11 months ago

suntong commented 11 months ago
          I know the root cause now, it's because when you save your code in a short period of time, air will start duplicate processes, but doesn't have any lock for it.

Originally posted by @xiantang in https://github.com/cosmtrek/air/issues/457#issuecomment-1754768521

suntong commented 11 months ago

Thanks for fixing #216, now the "port address already in use" issue has been fixed.

Yet, the air will still start duplicate build processes, like I originally reported in https://github.com/cosmtrek/air/issues/216#issuecomment-1751531229

Please doublecheck.

suntong commented 11 months ago

Eventually the processes grow so out of the control,

image

that even ^C to stop it will take several minutes :( :(

xiantang commented 11 months ago

https://github.com/cosmtrek/air/commit/4603314db840710d1762e1e4a1527cfc9c7d90c0 should be fix by