air-verse / air

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

Make air work with Colima #418

Closed zachgrayio closed 1 year ago

zachgrayio commented 1 year ago

Air probably shouldn't filter out chmod events, as they're valid filewatcher events dispatched by popular tools specifically for livereload.

This patch fixes Air when using Colima instead of Docker Desktop for Mac, as most users are moving away from Docker Desktop in favor of Colima after the licensing changes.

Related: https://github.com/abiosoft/colima/issues/261#issuecomment-1484677394

zachgrayio commented 1 year ago

Verified this commit works as expected on M1 MBP

sysctl -n machdep.cpu.brand_string
Apple M1 Pro
sw_vers
ProductName:        macOS
ProductVersion:     13.2.1
BuildVersion:       22D68

and

cosmtrek commented 1 year ago

@zachgrayio Thanks~