Reviewers: adg,
Message:
Hello
a...@golang.org (cc:
golan...@googlegroups.com),
I'd like you to review this change to
https://code.google.com/p/go.tools
Description:
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.
Please review this at
https://codereview.appspot.com/38720044/
Affected files (+2, -1 lines):
M dashboard/builder/main.go
Index: dashboard/builder/main.go
===================================================================
--- a/dashboard/builder/main.go
+++ b/dashboard/builder/main.go
@@ -492,7 +492,8 @@
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),