Recently I got this error while deploy my golang app :
invalid go version ‘1.24.4’: must match format 1.23
Somehow I got my golang version use 1.19
brew list | grep go
argon2
go
go@1.24
gobject-introspection
googletest
quick search lead me to solution for my macbook setup
brew install go@1.24
brew unlink go && brew link –overwrite go@1.24
echo ‘export PATH=”/usr/local/opt/go@1.24/bin:$PATH”‘ >> ~/.zshrc
source ~/.zshrc
go version
go version go1.24.11 darwin/amd64
done, the problem gone 🙂