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:
parent
d4a020dec1
commit
7c68f7876a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user