Clean up godep scripts to be self-contained

This commit is contained in:
Tim Hockin
2017-08-31 22:29:32 -07:00
parent 7732c8d892
commit a29c048e33
6 changed files with 73 additions and 39 deletions

View File

@@ -25,10 +25,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
rm -f "${KUBE_ROOT}/pkg/generated/openapi/zz_generated.openapi.go"
# The git commit sha1s here should match the values in $KUBE_ROOT/WORKSPACE.
kube::util::go_install_from_commit github.com/kubernetes/repo-infra/kazel 4eaf9e671bbb549fb4ec292cf251f921d7ef80ac
kube::util::go_install_from_commit github.com/bazelbuild/rules_go/go/tools/gazelle/gazelle 82483596ec203eb9c1849937636f4cbed83733eb
kube::util::go_install_from_commit \
github.com/kubernetes/repo-infra/kazel \
4eaf9e671bbb549fb4ec292cf251f921d7ef80ac
kube::util::go_install_from_commit \
github.com/bazelbuild/rules_go/go/tools/gazelle/gazelle \
82483596ec203eb9c1849937636f4cbed83733eb
touch "${KUBE_ROOT}/vendor/BUILD"
gazelle fix -build_file_name=BUILD,BUILD.bazel -external=vendored -mode=fix -repo_root="$(kube::realpath ${KUBE_ROOT})"
kazel -root="$(kube::realpath ${KUBE_ROOT})"
gazelle fix \
-build_file_name=BUILD,BUILD.bazel \
-external=vendored \
-mode=fix
kazel