Is Go 1.20 still suported?
Closed this issue · 3 comments
LukasPoque commented
When I'm trying to build my project with go-proj in it, I'm receiving this error:
#0 7.715 # github.com/twpayne/go-proj/v10
#0 7.715 /go/pkg/mod/github.com/twpayne/go-proj/v10@v10.2.0/pj.go:241:3: undefined: max
#0 7.715 note: module requires Go 1.21
ERROR: failed to solve: process "/bin/sh -c go build -o main ./cmd/time-location-service" did not complete successfully: exit code: 1
go.mod:
require (
...
github.com/twpayne/go-proj/v10 v10.2.0
...
)
So am I doing something wrong or is 1.20 no longer supported? I thought it was bc. of #12
LukasPoque commented
The error before was from a docker build, here is the error right from my local machine with go 1.20.4:
Build Error: go build -o time-location-service\__debug_bin.exe -gcflags all=-N -l .
# github.com/twpayne/go-proj/v10
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slice.go:4:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slice.go:9:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slice.go:14:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slice.go:14:43: undefined: Direction
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:4:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:9:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:14:11: undefined: PJ
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:14:44: undefined: Direction
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:28:37: undefined: Coord
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:42:57: undefined: Coord
C:\Users\Lukas\go\pkg\mod\github.com\twpayne\go-proj\v10@v10.2.0\float64slices.go:42:57: too many errors
note: module requires Go 1.21 (exit status 1)
twpayne commented
No. Note that Go 1.20 is no longer supported by Go itself. For example, this means that Go 1.20 no longer receives security updates.
LukasPoque commented
Ok, thanks for the fast reply, will test it with a newer version