air icon indicating copy to clipboard operation
air copied to clipboard

Fix go directive to avoid language version

Open haruyama480 opened this issue 11 months ago • 1 comments

Specifying 1.22 (referred to as the language version) without the toolchain directive causes compilation to fail when developers uses older go like 1.21. To workaround, I recommend to specify go 1.22.0.

https://github.com/golang/go/issues/62278#issuecomment-2015737150

haruyama480 avatar Mar 22 '24 09:03 haruyama480

https://github.com/cosmtrek/air/pull/529#discussion_r1493807604

Yes, the following error is local issue.

go: downloading go1.22 (darwin/arm64)
go: download go1.22 for darwin/arm64: toolchain not available

However, this merge works well without above error.

haruyama480 avatar Apr 14 '24 17:04 haruyama480