Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Always run go mod vendor on bin/gen-kube #47

Merged
merged 2 commits into from
May 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions bin/gen-kube
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ echo "Git root $GIT_ROOT ($PROJECT)"

cd "$GIT_ROOT"

if [ -z ${CODEGEN_PKG+x} ] || [ ! -d "$CODEGEN_PKG" ]; then
go mod vendor
fi
go mod vendor

CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${GIT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null)}

Expand Down