cmd/go/internal/modcmd: skip modules with empty version strings
This CL restores behavior before CL 189797 and fixes a misleading comment. modload.ListModules may return info without a version for the main module and for modules replaced with local directories. Fixes #35505 Change-Id: I5b4e68053a680ff897b072fdf6e7aa17b6e1ac34 Reviewed-on: https://go-review.googlesource.com/c/go/+/206538 Run-TryBot: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Showing
Please register or sign in to comment