Browse Source

Also -no-upgrade with any command

Jakob Borg 11 years ago
parent
commit
45917f278a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      build.go

+ 5 - 1
build.go

@@ -82,7 +82,11 @@ func main() {
 	checkRequiredGoVersion()
 
 	if flag.NArg() == 0 {
-		install("./cmd/...", nil)
+		var tags []string
+		if noupgrade {
+			tags = []string{"noupgrade"}
+		}
+		install("./cmd/...", tags)
 		return
 	}