Skip to content

Commit b94dca9

Browse files
authored
Merge pull request kubernetes#85657 from liggitt/bazel-module
Enable update-bazel.sh outside of GOPATH
2 parents fe0a474 + a8991a1 commit b94dca9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hack/update-bazel.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ export GOBIN="${KUBE_OUTPUT_BINPATH}"
2525
PATH="${GOBIN}:${PATH}"
2626

2727
# Install tools we need, but only from vendor/...
28-
pushd "${KUBE_ROOT}/vendor"
29-
go install ./github.com/bazelbuild/bazel-gazelle/cmd/gazelle
30-
go install ./github.com/bazelbuild/buildtools/buildozer
31-
go install ./k8s.io/repo-infra/cmd/kazel
32-
popd
28+
pushd "${KUBE_ROOT}" >/dev/null
29+
GO111MODULE=on GOFLAGS=-mod=vendor go install github.com/bazelbuild/bazel-gazelle/cmd/gazelle
30+
GO111MODULE=on GOFLAGS=-mod=vendor go install github.com/bazelbuild/buildtools/buildozer
31+
GO111MODULE=on GOFLAGS=-mod=vendor go install k8s.io/repo-infra/cmd/kazel
32+
popd >/dev/null
3333

3434
# Find all of the staging repos.
3535
while IFS='' read -r repo; do staging_repos+=("${repo}"); done <\

0 commit comments

Comments
 (0)