Skip to content

Commit

Permalink
Merge pull request #535 from BenTheElder/update-generated-fixup
Browse files Browse the repository at this point in the history
patch update-generated.sh
  • Loading branch information
k8s-ci-robot committed May 15, 2019
2 parents c34a753 + f2e2a6a commit 267e752
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/update-generated.sh
Expand Up @@ -39,6 +39,7 @@ cd "${REPO_ROOT}"
# turn off module mode before running the generators # turn off module mode before running the generators
# https://github.com/kubernetes/code-generator/issues/69 # https://github.com/kubernetes/code-generator/issues/69
# we also need to populate vendor # we also need to populate vendor
go mod tidy
go mod vendor go mod vendor
export GO111MODULE="off" export GO111MODULE="off"


Expand All @@ -65,7 +66,7 @@ cd "${FAKE_REPOPATH}"
"${BINDIR}/conversion-gen" -i ./pkg/cluster/config/v1alpha3 -O zz_generated.conversion --go-header-file hack/boilerplate.go.txt "${BINDIR}/conversion-gen" -i ./pkg/cluster/config/v1alpha3 -O zz_generated.conversion --go-header-file hack/boilerplate.go.txt


export GO111MODULE="on" export GO111MODULE="on"
cd $REPO_ROOT cd "${REPO_ROOT}"


# gofmt the tree # gofmt the tree
find . -name "*.go" -type f -print0 | xargs -0 gofmt -s -w find . -name "*.go" -type f -print0 | xargs -0 gofmt -s -w

0 comments on commit 267e752

Please sign in to comment.