Closed swayz8148 closed 6 months ago
"Starting with Go 1.21, min and max are available as builtins..."
I believe your version of Golang is out of date specifically below version 1.21, also hinted at by this message:
note: module requires Go 1.22
Could you please provide the output of the following?
go version
my go version is go1.20.5 but i used it the other day and was fine did 1.22 just come out?
even after sudo pacman -Syu go i still have go version go1.20.5 linux/amd64 ill try use gvm to install 1.22
Try running
which go
to see the path of the go binary that is being executed, that might help you find out what is interfering.
It may be that another go project you installed may have downgraded to go 1.20 therefore caused this issue
i got go version go1.22.0 linux/amd64 by installing it via gvm and then uninstalling go via pacman and then set the path to go on my .bashrc file ill test the install again to see if this has made it work
it works now i have no idea what downgraded my go version but gvm helped me get it to 1.22
Describe the bug
github.com/micr0-dev/lexido/pkg/tea
pkg/tea/tea.go:168:79: undefined: min pkg/tea/tea.go:203:159: undefined: min pkg/tea/tea.go:206:96: undefined: min note: module requires Go 1.22
To Reproduce git clone https://github.com/micr0-dev/lexido.git cd lexido ./build-all.sh
Expected behavior install without error
Screenshots
Desktop (please complete the following information):
Additional context