mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
go.tools/dashboard/builder: use https to talk to dashboard
LGTM=crawshaw R=golang-codereviews, crawshaw CC=golang-codereviews https://golang.org/cl/125100043
This commit is contained in:
parent
2607e9b47a
commit
c98886f21f
@ -29,7 +29,7 @@ func dash(meth, cmd string, args url.Values, req, resp interface{}) error {
|
|||||||
if *verbose {
|
if *verbose {
|
||||||
log.Println("dash <-", meth, cmd, args, req)
|
log.Println("dash <-", meth, cmd, args, req)
|
||||||
}
|
}
|
||||||
cmd = "http://" + *dashboard + "/" + cmd
|
cmd = *dashboard + "/" + cmd
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
cmd += "?" + args.Encode()
|
cmd += "?" + args.Encode()
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ var (
|
|||||||
doBuild = flag.Bool("build", true, "Build and test packages")
|
doBuild = flag.Bool("build", true, "Build and test packages")
|
||||||
doBench = flag.Bool("bench", false, "Run benchmarks")
|
doBench = flag.Bool("bench", false, "Run benchmarks")
|
||||||
buildroot = flag.String("buildroot", defaultBuildRoot(), "Directory under which to build")
|
buildroot = flag.String("buildroot", defaultBuildRoot(), "Directory under which to build")
|
||||||
dashboard = flag.String("dashboard", "build.golang.org", "Go Dashboard Host")
|
dashboard = flag.String("dashboard", "https://build.golang.org", "Dashboard app base path")
|
||||||
buildRelease = flag.Bool("release", false, "Build and upload binary release archives")
|
buildRelease = flag.Bool("release", false, "Build and upload binary release archives")
|
||||||
buildRevision = flag.String("rev", "", "Build specified revision and exit")
|
buildRevision = flag.String("rev", "", "Build specified revision and exit")
|
||||||
buildCmd = flag.String("cmd", filepath.Join(".", allCmd), "Build command (specify relative to go/src/)")
|
buildCmd = flag.String("cmd", filepath.Join(".", allCmd), "Build command (specify relative to go/src/)")
|
||||||
|
Loading…
Reference in New Issue
Block a user