mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #41517 from jcbsmpsn/update-bazel-treat-gopath-as-path
Automatic merge from submit-queue update-bazel.sh to treat GOPATH as a path
This commit is contained in:
		@@ -23,4 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
 | 
				
			|||||||
git config http.https://gopkg.in.followRedirects true
 | 
					git config http.https://gopkg.in.followRedirects true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go get -u gopkg.in/mikedanese/gazel.v14/gazel
 | 
					go get -u gopkg.in/mikedanese/gazel.v14/gazel
 | 
				
			||||||
"${GOPATH}/bin/gazel" -root="$(kube::realpath ${KUBE_ROOT})"
 | 
					
 | 
				
			||||||
 | 
					for path in ${GOPATH//:/ }; do
 | 
				
			||||||
 | 
					    if [[ -e "${path}/bin/gazel" ]]; then
 | 
				
			||||||
 | 
					      gazel="${path}/bin/gazel"
 | 
				
			||||||
 | 
					      break
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					if [[ -z "${gazel:-}" ]]; then
 | 
				
			||||||
 | 
					  echo "Couldn't find gazel on the GOPATH."
 | 
				
			||||||
 | 
					  exit 1
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					"${gazel}" -root="$(kube::realpath ${KUBE_ROOT})"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user