mirror of
https://github.com/golang/go
synced 2024-11-22 04:24:39 -07:00
cmd/goinstall: try to access via https.
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4667051
This commit is contained in:
parent
b0449c50f7
commit
21efa147ba
@ -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{
|
|||||||
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{
|
|||||||
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{
|
|||||||
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", ""},
|
||||||
|
Loading…
Reference in New Issue
Block a user