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

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

Closed
amdshrif opened this issue Nov 16, 2023 · 1 comment
Closed

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

amdshrif opened this issue Nov 16, 2023 · 1 comment

Comments

@amdshrif
Copy link

amdshrif commented Nov 16, 2023

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

lukmdo commented Dec 13, 2023

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

  • idea: may install from installer https://go.dev/doc/install - should clean any previous versions leftover/mismatch for you
  • suspect: it may have todo with
GOTOOLCHAIN=auto

Please see actions/setup-go#420 and the docs

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

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

3 participants