mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Generate a dummy BUILD file in _output/local/go to keep Bazel out of trouble
This commit is contained in:
		| @@ -9,5 +9,8 @@ | |||||||
| 		"./federation", | 		"./federation", | ||||||
| 		"./examples" | 		"./examples" | ||||||
| 	], | 	], | ||||||
|  | 	"SkippedPaths": [ | ||||||
|  | 		"^_.*" | ||||||
|  | 	], | ||||||
| 	"AddSourcesRules": true | 	"AddSourcesRules": true | ||||||
| } | } | ||||||
|   | |||||||
| @@ -307,6 +307,12 @@ kube::golang::create_gopath_tree() { | |||||||
|   if [[ ! -e "${go_pkg_dir}" || "$(readlink ${go_pkg_dir})" != "${KUBE_ROOT}" ]]; then |   if [[ ! -e "${go_pkg_dir}" || "$(readlink ${go_pkg_dir})" != "${KUBE_ROOT}" ]]; then | ||||||
|     ln -snf "${KUBE_ROOT}" "${go_pkg_dir}" |     ln -snf "${KUBE_ROOT}" "${go_pkg_dir}" | ||||||
|   fi |   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. | # Ensure the godep tool exists and is a viable version. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jeff Grafton
					Jeff Grafton