Skip to content

Commit

Permalink
Generate a dummy BUILD file in _output/local/go to keep Bazel out of …
Browse files Browse the repository at this point in the history
…trouble
  • Loading branch information
ixdy committed Jan 6, 2017
1 parent 7841d57 commit d5705a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gazelcfg.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"./federation",
"./examples"
],
"SkippedPaths": [
"^_.*"
],
"AddSourcesRules": true
}
6 changes: 6 additions & 0 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ kube::golang::create_gopath_tree() {
if [[ ! -e "${go_pkg_dir}" || "$(readlink ${go_pkg_dir})" != "${KUBE_ROOT}" ]]; then
ln -snf "${KUBE_ROOT}" "${go_pkg_dir}"
fi

cat >"${KUBE_GOPATH}/BUILD" <<EOF
# This dummy BUILD file prevents Bazel from trying to descend through the
# infinite loop created by the symlink at
# ${go_pkg_dir}
EOF
}

# Ensure the godep tool exists and is a viable version.
Expand Down

0 comments on commit d5705a6

Please sign in to comment.