go list -deps -f '{{with .Module}}{{.Path}} {{.Version}}{{end}}' ./... | sort -u
(Command originally from Bryan Mills).
Regards,
thepudds
A dependency is a dependency. There are no scopes like you might find in Maven(Java) land. Your project needs these "test deps" to run your tests, so they are in your module file. Even so, Go is smart enough when it builds your binary to not include the extra bloat.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/4kldLhXlfAU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6269fe14-6708-48e9-ad98-62b2aadd3866%40googlegroups.com.