1
0
mirror of https://github.com/golang/go synced 2024-11-22 19:05:01 -07:00

misc/dashboard/builder: make -fail mode faster

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
This commit is contained in:
Russ Cox 2013-03-04 10:31:01 -05:00
parent d4a020dec1
commit 7c68f7876a

View File

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