Commit 21efa147 authored by Yasuhiro Matsumoto's avatar Yasuhiro Matsumoto Committed by Russ Cox

cmd/goinstall: try to access via https.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4667051
parent b0449c50
...@@ -77,7 +77,7 @@ var hg = vcs{ ...@@ -77,7 +77,7 @@ var hg = vcs{
logLimitFlag: "-l1", logLimitFlag: "-l1",
logReleaseFlag: "-rrelease", logReleaseFlag: "-rrelease",
check: "identify", check: "identify",
protocols: []string{"http"}, protocols: []string{"https", "http"},
suffix: ".hg", suffix: ".hg",
defaultHosts: []host{ defaultHosts: []host{
{regexp.MustCompile(`^([a-z0-9\-]+\.googlecode\.com/hg)(/[a-z0-9A-Z_.\-/]*)?$`), "https", ""}, {regexp.MustCompile(`^([a-z0-9\-]+\.googlecode\.com/hg)(/[a-z0-9A-Z_.\-/]*)?$`), "https", ""},
...@@ -98,7 +98,7 @@ var git = vcs{ ...@@ -98,7 +98,7 @@ var git = vcs{
logLimitFlag: "", logLimitFlag: "",
logReleaseFlag: "release", logReleaseFlag: "release",
check: "peek-remote", check: "peek-remote",
protocols: []string{"git", "http"}, protocols: []string{"git", "https", "http"},
suffix: ".git", suffix: ".git",
defaultHosts: []host{ defaultHosts: []host{
{regexp.MustCompile(`^(github\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(/[a-z0-9A-Z_.\-/]*)?$`), "http", ".git"}, {regexp.MustCompile(`^(github\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(/[a-z0-9A-Z_.\-/]*)?$`), "http", ".git"},
...@@ -117,7 +117,7 @@ var svn = vcs{ ...@@ -117,7 +117,7 @@ var svn = vcs{
logLimitFlag: "-l1", logLimitFlag: "-l1",
logReleaseFlag: "release", logReleaseFlag: "release",
check: "info", check: "info",
protocols: []string{"http", "svn"}, protocols: []string{"https", "http", "svn"},
suffix: ".svn", suffix: ".svn",
defaultHosts: []host{ defaultHosts: []host{
{regexp.MustCompile(`^([a-z0-9\-]+\.googlecode\.com/svn)(/[a-z0-9A-Z_.\-/]*)?$`), "https", ""}, {regexp.MustCompile(`^([a-z0-9\-]+\.googlecode\.com/svn)(/[a-z0-9A-Z_.\-/]*)?$`), "https", ""},
...@@ -138,7 +138,7 @@ var bzr = vcs{ ...@@ -138,7 +138,7 @@ var bzr = vcs{
logLimitFlag: "-l1", logLimitFlag: "-l1",
logReleaseFlag: "-rrelease", logReleaseFlag: "-rrelease",
check: "info", check: "info",
protocols: []string{"http", "bzr"}, protocols: []string{"https", "http", "bzr"},
suffix: ".bzr", suffix: ".bzr",
defaultHosts: []host{ defaultHosts: []host{
{regexp.MustCompile(`^(launchpad\.net/([a-z0-9A-Z_.\-]+(/[a-z0-9A-Z_.\-]+)?|~[a-z0-9A-Z_.\-]+/(\+junk|[a-z0-9A-Z_.\-]+)/[a-z0-9A-Z_.\-]+))(/[a-z0-9A-Z_.\-/]+)?$`), "https", ""}, {regexp.MustCompile(`^(launchpad\.net/([a-z0-9A-Z_.\-]+(/[a-z0-9A-Z_.\-]+)?|~[a-z0-9A-Z_.\-]+/(\+junk|[a-z0-9A-Z_.\-]+)/[a-z0-9A-Z_.\-]+))(/[a-z0-9A-Z_.\-/]+)?$`), "https", ""},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment