1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:44:46 -07:00

go.tools/dashboard/builder: do not fatal on subrepo fetch errors

When fetching repos it is not uncommon for a 500 or 503 to be returned
from code.google.com. When this happens, log the error and continue so
that we try again later, rather than treating this as fatal.

R=adg, dvyukov
CC=golang-dev
https://golang.org/cl/38720044
This commit is contained in:
Joel Sing 2013-12-11 23:47:31 +11:00
parent 26d5173f5e
commit 130693e419

View File

@ -492,7 +492,8 @@ func commitWatcher(goroot *Repo) {
for _, pkg := range dashboardPackages("subrepo") {
pkgmaster, err := vcs.RepoRootForImportPath(pkg, *verbose)
if err != nil {
log.Fatalf("Error finding subrepo (%s): %s", pkg, err)
log.Printf("Error finding subrepo (%s): %s", pkg, err)
continue
}
pkgroot := &Repo{
Path: filepath.Join(*buildroot, pkg),