]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modget: warn about unmatched packages exactly once
authorBryan C. Mills <bcmills@google.com>
Thu, 10 Sep 2020 13:34:15 +0000 (09:34 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 15 Sep 2020 18:48:09 +0000 (18:48 +0000)
commit3ab825de9d50b24e2b97267a5d66dadb66399180
tree038fb96f7f45e40309a025f3ed1a686ab0fdac8c
parentde0957dc081e1ec49c99a0f37403ceadbaaedf85
cmd/go/internal/modget: warn about unmatched packages exactly once

Due to an inverted condition, we were emitting a "matched no packages"
warning twice in some cases and not at all in others.

For #41315

Change-Id: I472cd2d4f75811c8734852f2bdd7346f4c612816
Reviewed-on: https://go-review.googlesource.com/c/go/+/254819
Trust: Bryan C. Mills <bcmills@google.com>
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/mod_get_nopkgs.txt [new file with mode: 0644]