Consider updating declared Go version in go.mod #1313
Labels
Breaking Change
dependencies
Pull requests that update a dependency file
go
Pull requests that update Go code
The go.mod file declares go 1.13 right now. Module graph pruning was added in Go 1.17, meaning that other modules can import your module and only pick up the transitive dependencies that are actually reachable based on how they use your code. Right now, importing testify means importing a yaml parser because the declared go version predates go 1.17.
The tidiest dependency graph will come from using go 1.18, as:
Go 1.18 is also the oldest Go release still supported by the Go team, so it's a reasonable choice of language version to declare.
The text was updated successfully, but these errors were encountered: