Skip to content
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

Latest air package is breaking v1.50.0 #532

Open
liveHarshit opened this issue Feb 21, 2024 · 4 comments
Open

Latest air package is breaking v1.50.0 #532

liveHarshit opened this issue Feb 21, 2024 · 4 comments

Comments

@liveHarshit
Copy link

liveHarshit commented Feb 21, 2024

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
Copy link

hiroyky commented Feb 21, 2024

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
Copy link

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
Copy link

yuyuyu0905 commented Feb 21, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants