make update-generated work without checked in vendor

This commit is contained in:
Benjamin Elder
2019-05-07 21:09:03 -07:00
parent f721a0cf8c
commit c9fe6224b3
2 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View File

@@ -2,6 +2,9 @@
/_output
/_artifacts
# used for the code generators
/vendor
# macOS
.DS_Store

View File

@@ -36,6 +36,8 @@ go build -o "${BINDIR}/conversion-gen" k8s.io/code-generator/cmd/conversion-gen
# turn off module mode before running the generators
# https://github.com/kubernetes/code-generator/issues/69
# we also need to populate vendor
go mod vendor
export GO111MODULE="off"
# run the generators