gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
2.1k stars 125 forks source link

building from source on the latest release fails #447

Open isabelroses opened 3 weeks ago

isabelroses commented 3 weeks ago

Using go 1.13 fails to build on the latest release. I am mainly asking for new patch release containing the changes to the go.mod file.

gotestsum> vendor/golang.org/x/sys/unix/syscall.go:82:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/sys/unix/syscall_bsd.go:247:20: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/sys/unix/syscall_darwin.go:94:8: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/sys/unix/syscall_unix.go:117:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/sys/unix/sysvshm_unix.go:32:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
gotestsum> # golang.org/x/tools/internal/event/keys
gotestsum> vendor/golang.org/x/tools/internal/event/keys/util.go:14:11: type parameter requires go1.18 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/tools/internal/event/keys/util.go:14:13: embedding interface element ~[]T requires go1.18 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/tools/internal/event/keys/util.go:14:21: embedding interface element ~string requires go1.18 or later (-lang was set to go1.16; check go.mod)
gotestsum> vendor/golang.org/x/tools/internal/event/keys/util.go:15:32: invalid argument: s (variable of type S constrained by ~[]T) for built-in len
gotestsum> vendor/golang.org/x/tools/internal/event/keys/util.go:16:20: cannot range over s (variable of type S constrained by ~[]T): no core type
gotestsum> # golang.org/x/tools/internal/versions
gotestsum> vendor/golang.org/x/tools/internal/versions/types.go:15:16: predeclared any requires go1.18 or later (-lang was set to go1.16; check go.mod)
dnephin commented 3 weeks ago

Hello! Unfortunately go 1.13 is well past end of life now. It was end of line on 2020-08-11 when go1.15 was released.

Very soon we're going to be increasing the minimum required version go 1.18+ to make use of new features.

If you need to use an old Go version for some reason I suggest using a pre-compiled binary release of gotestsum. You can find those here.