]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dashboard/builder: make -fail mode faster
authorRuss Cox <rsc@golang.org>
Mon, 4 Mar 2013 15:31:01 +0000 (10:31 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 4 Mar 2013 15:31:01 +0000 (10:31 -0500)
Don't check out the repository if we're just going to fail everything.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7453048

misc/dashboard/builder/main.go

index 9096b66a2358034c22d7690086658d2bd25779f2..b2b8f43a6f8b4d15a1299887aed7efe09e3944af 100644 (file)
@@ -83,7 +83,7 @@ func main() {
        }
 
        // set up work environment, use existing enviroment if possible
-       if goroot.Exists() {
+       if goroot.Exists() || *failAll {
                log.Print("Found old workspace, will use it")
        } else {
                if err := os.RemoveAll(*buildroot); err != nil {