From e3fac7690b4334445d8c4f25439471d6c696afac Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Wed, 28 Nov 2018 13:50:01 -0800 Subject: [PATCH] Make Bazel not follow the infinite symlink in _output/local/go Otherwise, calling make followed by bazel might fail, requiring one to run make clean first. Additionally, add comments explaining why we must do this. --- hack/lib/golang.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index 7ddc0bb79bf..809569d50e1 100755 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -354,7 +354,15 @@ kube::golang::create_gopath_tree() { ln -snf "${KUBE_ROOT}" "${go_pkg_dir}" fi - cat >"${KUBE_GOPATH}/BUILD" <"${KUBE_GOPATH}/BUILD.bazel" <