gotestsum
gotestsum copied to clipboard
Latest dependabot update raises module requirement to Go 1.19
go install gotest.tools/gotestsum@latest
go: downloading gotest.tools v2.2.0+incompatible
go: downloading gotest.tools/gotestsum v1.12.0
go: downloading github.com/dnephin/pflag v1.0.7
go: downloading github.com/fatih/color v1.16.0
go: downloading github.com/google/shlex v0.0.0-201912021004[58]()-e7afc7fbc510
go: downloading golang.org/x/tools v0.19.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading golang.org/x/sys v0.18.0
go: downloading github.com/bitfield/gotestdox v0.2.2
go: downloading golang.org/x/sync v0.6.0
go: downloading golang.org/x/term v0.18.0
go: downloading golang.org/x/text v0.14.0
go: downloading golang.org/x/mod v0.16.0
# golang.org/x/tools/internal/typesinternal
/go/pkg/mod/golang.org/x/[email protected]/internal/typesinternal/types_118.go:13:7: conf.GoVersion undefined (type *types.Config has no field or method GoVersion)
note: module requires Go 1.19
# golang.org/x/tools/internal/event/keys
/go/pkg/mod/golang.org/x/[email protected]/internal/event/keys/util.go:14:6: missing function body
/go/pkg/mod/golang.org/x/[email protected]/internal/event/keys/util.go:14:10: syntax error: unexpected [, expecting (
note: module requires Go 1.19
# golang.org/x/tools/internal/versions
/go/pkg/mod/golang.org/x/[email protected]/internal/versions/types.go:15:16: undefined: any
/go/pkg/mod/golang.org/x/[email protected]/internal/versions/versions.go:52:12: undefined: strings.Cut
note: module requires Go 1.19
We use Go 1.17 at this time at our CI and today this pops up.
can confirm
Thank you for reporting this! Go 1.19 was EOL 2023-08-08, and Go 1.17 was EOL 2022-08-02.
I don't think we can support older Go versions, but as a workaround you can download a binary release from https://github.com/gotestyourself/gotestsum/releases. That should continue to work with older Go versions.