diff --git a/coreos-cloudinit.go b/coreos-cloudinit.go index 11fa3fe..e2b43c1 100644 --- a/coreos-cloudinit.go +++ b/coreos-cloudinit.go @@ -19,6 +19,7 @@ import ( "fmt" "log" "os" + "runtime" "sync" "time" @@ -129,6 +130,12 @@ var ( func main() { failure := false + // Conservative Go 1.5 upgrade strategy: + // keep GOMAXPROCS' default at 1 for now. + if os.Getenv("GOMAXPROCS") == "" { + runtime.GOMAXPROCS(1) + } + flag.Parse() if c, ok := oemConfigs[flags.oem]; ok { diff --git a/test b/test index 8853dfa..95daad5 100755 --- a/test +++ b/test @@ -31,7 +31,7 @@ gofmt -d -e $SRC # split SRC into an array and prepend REPO_PATH to each local package for go vet split_vet=(${SRC// / }) -VET_TEST=${split_vet[@]/#/${REPO_PATH}/} +VET_TEST="${REPO_PATH} ${split_vet[@]/#/${REPO_PATH}/}" echo "Checking govet..." go vet $VET_TEST