air-verse / air

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

Installation with `go install ...` command does not work for go 1.16 and 1.17 #413

Closed k3forx closed 1 year ago

k3forx commented 1 year ago

In the README, there is an explanation for the installation

With go 1.16 or higher:

go install github.com/cosmtrek/air@latest

but github.com/gohugoio/hugo which is one of air dependencies required go 1.18. I got the following error...

> go version
go version go1.17 darwin/amd64

> go install github.com/cosmtrek/air@latest
# github.com/gohugoio/hugo/common/text
../../../go/pkg/mod/github.com/gohugoio/hugo@v0.111.3/common/text/position.go:74:18: undefined: any
../../../go/pkg/mod/github.com/gohugoio/hugo@v0.111.3/common/text/transform.go:27:14: undefined: any
note: module requires Go 1.18