Open gen2thomas opened 1 year ago
according to man page, the json element should normally contain a pointer to the module, so it should contain the go version, but it don't:
type Module struct {
...
Update *Module // available update (with -u)
...
GoVersion string // go version used in module
}
Possible Solution:
go list -m -json <module>
for a go application with go version 1.19 this suggestion was done by deptree:
github.com/stretchr/testify@v1.8.2 (go1.13) => [v1.8.3]
testify 1.8.2 is a go 1.13 module, but v1.8.3 is a go 1.20 module
the go versions are listed correctly for both modules:
testify v1.8.3:
But the same call for upgrade do not contain the go version element: