cli53 icon indicating copy to clipboard operation
cli53 copied to clipboard

`go install` errors

Open drboone opened this issue 8 months ago • 2 comments

Doing go install github.com/barnybug/cli53/cmd/cli53@latest produces two errors:

go: github.com/barnybug/cli53/cmd/cli53@latest (in github.com/barnybug/[email protected]): go.mod:3: invalid go version '1.23.0': must match format 1.23
go.mod:5: unknown directive: toolchain

Apparently the trailing .0 is invalid? Not sure what the toolchain error is about. This is apparently a known problem:

https://medium.com/@cndf.dev/fixing-the-invalid-go-version-gotcha-in-go-mod-1dd498c3adcc

drboone avatar Apr 22 '25 21:04 drboone

Your version of Go is probably too old; the toolchain directive was introduced in Go 1.21.

AGWA avatar Apr 22 '25 22:04 AGWA