depaware icon indicating copy to clipboard operation
depaware copied to clipboard

consider showing test-only dependencies

Open thepudds opened this issue 3 years ago • 1 comments

The ability to more easily see what are test-only dependencies for modules is a common request for cmd/go.

Consider supporting it here, either by highlighting a test-only dependency or by highlighting a non-test dependency.

There are different ways to determine this, but one way is this, which shows the modules used in your build excluding test-only dependencies:

go list -deps -f '{{with .Module}}{{.Path}} {{.Version}}{{end}}' ./... | sort -u

thepudds avatar Sep 28 '20 14:09 thepudds

I'd be happy to review a PR that implemented this. Maybe it'd be another entry in the L/W/M/bomb column?

josharian avatar Jan 27 '22 19:01 josharian