tools/go/vcs
Dmitri Shuralyov 0a99049195 go/vcs: remove go.googlesource.com vcsPath entry
This change synchronizes the absence of a special case entry for
go.googlesource.com import paths in cmd/go/internal/get to this
package. It seems it was added to x/tools/go/vcs in CL 180540043,
but it was never added to cmd/go/internal/get itself.

Having an go.googlesource.com entry here but not in cmd/go/internal/get
means the import path resolution logic diverges from that of the go
command, which is counter to the goal of this package.

After this change is applied, vcs.RepoRootForImportPathStatic reports
correct results for import paths like "go.googlesource.com/scratch.git"
(resolving it without an error) and "go.googlesource.com/scratch"
(reporting an error).

Updates golang/go#11490

Change-Id: I0b1c959675d9e20205a587a06d734fcd103ebf91
Reviewed-on: https://go-review.googlesource.com/c/159817
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-01-28 23:20:29 +00:00
..
discovery.go go/vcs: workaround EOF bug in token-based XML decoder 2015-12-29 20:27:04 +00:00
env.go go.tools: add go/vcs 2013-08-15 09:00:02 -07:00
http.go go.tools: add go/vcs 2013-08-15 09:00:02 -07:00
vcs.go go/vcs: remove go.googlesource.com vcsPath entry 2019-01-28 23:20:29 +00:00
vcs_test.go go/vcs: match go-import package prefixes by slash 2018-06-20 03:09:55 +00:00