internal/frontend: add missing hosting providers
Added:
* git.sr.ht
* hg.sr.ht
* gopkg.in
* gitea.com
* gitee.com
* gitlab.com
Trust: Jamal Carvalho
@@ -119,7 +119,8 @@ func accountPrefix(parts []string) (string, []string) {
// The first two cases below handle the special cases that the go command does.
// See "go help importpath".
switch parts[0] {
- case "github.com", "bitbucket.org", "launchpad.net", "golang.org":
+ case "github.com", "bitbucket.org", "launchpad.net", "golang.org",
+ "git.sr.ht", "hg.sr.ht", "gopkg.in", "gitea.com", "gitee.com", "gitlab.com":
n = 1
case "hub.jazz.net":
n = 2
