![]() Ultimately, we're hitting places where bash is just hard to get right. Instead of: ``` $ make WHAT=nonexist stat /home/thockin/src/kubernetes/nonexist: directory not found !!! [0228 12:07:12] Call tree: !!! [0228 12:07:12] 1: /home/thockin/src/kubernetes/hack/lib/golang.sh:930 kube::golang::normalize_go_targets(...) !!! [0228 12:07:12] 2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) +++ [0228 12:07:12] Building go targets for linux/amd64 (non-static) no Go files in /home/thockin/src/kubernetes !!! [0228 12:07:12] Call tree: !!! [0228 12:07:12] 1: /home/thockin/src/kubernetes/hack/lib/golang.sh:820 kube::golang::build_some_binaries(...) !!! [0228 12:07:12] 2: /home/thockin/src/kubernetes/hack/lib/golang.sh:974 kube::golang::build_binaries_for_platform(...) !!! [0228 12:07:12] 3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0228 12:07:12] Call tree: !!! [0228 12:07:12] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0228 12:07:12] Call tree: !!! [0228 12:07:12] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) make: *** [Makefile:95: all] Error 1 ``` We now get: ``` $ make WHAT=nonexist +++ [0228 12:33:49] Building go targets for linux/amd64 ./nonexist (non-static) stat /home/thockin/src/kubernetes/nonexist: directory not found !!! [0228 12:33:49] Call tree: !!! [0228 12:33:49] 1: /home/thockin/src/kubernetes/hack/lib/golang.sh:823 kube::golang::build_some_binaries(...) !!! [0228 12:33:49] 2: /home/thockin/src/kubernetes/hack/lib/golang.sh:976 kube::golang::build_binaries_for_platform(...) !!! [0228 12:33:49] 3: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0228 12:33:49] Call tree: !!! [0228 12:33:49] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) !!! [0228 12:33:49] Call tree: !!! [0228 12:33:49] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...) make: *** [Makefile:95: all] Error 1 $ make test WHAT=nonexist +++ [0228 12:33:53] Set GOMAXPROCS automatically to 6 +++ [0228 12:33:53] Running tests without code coverage and with -race stat /home/thockin/src/kubernetes/nonexist: directory not found make: *** [Makefile:190: test] Error 1 ``` |
||
---|---|---|
.. | ||
.gitattributes | ||
etcd.sh | ||
golang.sh | ||
init.sh | ||
logging.sh | ||
protoc.sh | ||
test.sh | ||
util.sh | ||
verify-generated.sh | ||
version.sh |