зеркало из https://github.com/golang/build.git
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:
Родитель
8dce77a398
Коммит
85a356856c
|
@ -492,7 +492,8 @@ func commitWatcher(goroot *Repo) {
|
||||||
for _, pkg := range dashboardPackages("subrepo") {
|
for _, pkg := range dashboardPackages("subrepo") {
|
||||||
pkgmaster, err := vcs.RepoRootForImportPath(pkg, *verbose)
|
pkgmaster, err := vcs.RepoRootForImportPath(pkg, *verbose)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error finding subrepo (%s): %s", pkg, err)
|
log.Printf("Error finding subrepo (%s): %s", pkg, err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
pkgroot := &Repo{
|
pkgroot := &Repo{
|
||||||
Path: filepath.Join(*buildroot, pkg),
|
Path: filepath.Join(*buildroot, pkg),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче