cli53
cli53 copied to clipboard
`go install` errors
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
Your version of Go is probably too old; the toolchain directive was introduced in Go 1.21.