air-verse / air

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

version "go1.21.4" does not match go tool version "go1.21.3" #500

Open amdshrif opened 7 months ago

amdshrif commented 7 months ago

It looks like air does not support 1.21.4 yet. I am willing to create a PR to fix it, please let me know if this is something you would consider pulling a fix for.

$ go install github.com/cosmtrek/air@latest
go: downloading github.com/cosmtrek/air v1.49.0
go: downloading dario.cat/mergo v1.0.0
go: downloading github.com/fatih/color v1.14.1
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/gohugoio/hugo v0.111.3
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading golang.org/x/sys v0.5.0
go: downloading github.com/mattn/go-isatty v0.0.17
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/tdewolff/parse/v2 v2.6.5
go: downloading github.com/bep/godartsass v0.16.0
go: downloading github.com/bep/golibsass v1.1.0
go: downloading github.com/pelletier/go-toml/v2 v2.0.6
go: downloading golang.org/x/text v0.7.0
go: downloading github.com/spf13/afero v1.9.3
go: downloading google.golang.org/protobuf v1.28.1
go: downloading github.com/cli/safeexec v1.0.0
# encoding
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# math/bits
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/godebugs
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/itoa
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/unsafeheader
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/coverage/rtcov
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# unicode/utf8
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/goos
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/goarch
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/goexperiment
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# crypto/internal/alias
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/race
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# unicode
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# unicode/utf16
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# google.golang.org/protobuf/internal/flags
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# log/internal
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# container/list
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# vendor/golang.org/x/crypto/cryptobyte/asn1
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/nettrace
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# vendor/golang.org/x/crypto/internal/alias
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# internal/cpu
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# crypto/subtle
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# sync/atomic
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# crypto/internal/boring/sig
compile: version "go1.21.4" does not match go tool version "go1.21.3"
# runtime/internal/atomic
compile: version "go1.21.4" does not match go tool version "go1.21.3"
lukmdo commented 6 months ago

This looks more like something with go setup installation than air

I hope this will hint you where this problem is exactly

cat << EOL | xargs -L1 -I{} bash -x -c {}
which go
go version
go env GOROOT
go env GOTOOLCHAIN 
go tool -n compile
go tool compile -V
EOL

tips

I tried but failed to get to the same state as yours.