]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/module: fix inverted condition in MatchPathMajor
authorJay Conrod <jayconrod@google.com>
Wed, 16 Oct 2019 18:32:03 +0000 (14:32 -0400)
committerJay Conrod <jayconrod@google.com>
Wed, 16 Oct 2019 23:14:14 +0000 (23:14 +0000)
commit3b003c3edb013786caeea6c0913b2e21fc4ad66b
tree90a2475bf686c55c94384caa618d67af35a5cd08
parent02196d36575636a64f868ee0ffe6bb61442e7245
cmd/go/internal/module: fix inverted condition in MatchPathMajor

This was spotted in CL 200767. This change just ensures internal
packages match their equivalents in x/mod.

Also pulled in test added in CL 201517.

Change-Id: I51d23d62697c256548f411930fcb6bccce51bf34
Reviewed-on: https://go-review.googlesource.com/c/go/+/201497
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/module/module.go
src/cmd/go/internal/module/module_test.go