diff options
| author | Jonathan Amsterdam <jba@google.com> | 2020-07-27 14:58:00 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2020-07-27 22:07:45 +0000 |
| commit | 28e91c83d738eae564c436ba27ffa33b0b97a5dd (patch) | |
| tree | e68d2bdb21e5637cf72eb72f1aa92523b4734b3c /internal/source/source.go | |
| parent | 6b36b65687e606e5913708c4259e107f8559abda (diff) | |
| download | go-x-pkgsite-28e91c83d738eae564c436ba27ffa33b0b97a5dd.tar.xz | |
internal/source: remove extraneous comments
It's not important whether certain patterns are part of the go command
or not.
Change-Id: I8e921b0f2256efa419b3df41a9d1925cb0fa8cd7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/245037
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/source/source.go')
| -rw-r--r-- | internal/source/source.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/source/source.go b/internal/source/source.go index 259593d2..806460f2 100644 --- a/internal/source/source.go +++ b/internal/source/source.go @@ -428,7 +428,6 @@ var patterns = []struct { re *regexp.Regexp templates urlTemplates }{ - // Patterns known to the go command. { regexp.MustCompile(`^(?P<repo>github\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`), githubURLTemplates, @@ -437,13 +436,6 @@ var patterns = []struct { regexp.MustCompile(`^(?P<repo>bitbucket\.org/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`), bitbucketURLTemplates, }, - // Other patterns from cmd/go/internal/get/vcs.go, that we omit: - // hub.jazz.net it no longer exists. - // git.apache.org now redirects to github, and serves a go-import tag. - // git.openstack.org has been rebranded. - // chiselapp.com has no Go packages in godoc.org. - - // Patterns that are not (yet) part of the go command. { regexp.MustCompile(`^(?P<repo>gitlab\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`), githubURLTemplates, @@ -457,7 +449,6 @@ var patterns = []struct { regexp.MustCompile(`^(?P<repo>gitee\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`), githubURLTemplates, }, - // Patterns that match the general go command pattern, where they must have // a ".git" repo suffix in an import path. If matching a repo URL from a meta tag, // there is no ".git". |
