air-verse / air

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

Latest air package is breaking v1.50.0 #532

Open liveHarshit opened 4 months ago

liveHarshit commented 4 months ago

Latest air package is breaking v1.50.0

failed to solve: process "/bin/sh -c go install github.com/cosmtrek/air@latest" did not complete successfully: exit code: 1

hiroyky commented 4 months ago

What do you use go version? Recently go version of air is updated at here. I also had encouted same problem today. so I updated to go 1.22 in my docker environment, so I cloud resolve it.

So, Please try to update Go version 1.22.

denis-zyk commented 4 months ago

I agree with @liveHarshit that this is indeed a breaking change.

As per official readme, it should be possible to do go install using go 1.18:

image

yuyuyu0905 commented 4 months ago

Same happened to me. Trying to build my Docker container based on Go 1.20 and got:

github.com/cosmtrek/air/runner: cannot compile Go 1.22 code

Update to 1.22 did work, but is there a way to get it fixed without changing the Go version?

dokudoki commented 3 months ago

@yuyuyu0905 I have to do go install github.com/cosmtrek/air@v1.49.0

Nabin19677 commented 4 weeks ago

Same happened to me today, Changed it to go install github.com/air-verse/air@latest