]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modcmd: skip modules with empty version strings
authorJay Conrod <jayconrod@google.com>
Mon, 11 Nov 2019 19:24:00 +0000 (14:24 -0500)
committerBryan C. Mills <bcmills@google.com>
Mon, 11 Nov 2019 20:19:06 +0000 (20:19 +0000)
commitd43180429552dd09ba98f1af7bd25c245cf8531e
tree2e99b92a68352c3877bf4e437d8813b31117a925
parentb1159bad99db43e3f1b114e16c913d0e28387160
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>
src/cmd/go/internal/modcmd/download.go
src/cmd/go/testdata/script/mod_download_replace_file.txt [new file with mode: 0644]