diff options
| author | gy95 <guoyao17@huawei.com> | 2022-05-19 15:22:01 +0800 |
|---|---|---|
| committer | gy95 <guoyao17@huawei.com> | 2022-05-19 15:33:01 +0800 |
| commit | 70eb6610d8811dc53fe1994806cf1d65f0addc2b (patch) | |
| tree | 2c1cb145d415ac64cb8ee928fac8236cbb36719e /hack/update-codegen.sh | |
| parent | Merge pull request #3856 from ModeEngage/master (diff) | |
| download | kubeedge-70eb6610d8811dc53fe1994806cf1d65f0addc2b.tar.gz | |
codegen update in repository
Signed-off-by: gy95 <guoyao17@huawei.com>
Diffstat (limited to 'hack/update-codegen.sh')
| -rwxr-xr-x | hack/update-codegen.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 5cdfcf440..f1aeba73f 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -22,6 +22,18 @@ KUBEEDGE_ROOT=$(unset CDPATH && cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P export GOPATH="${GOPATH:-$(go env GOPATH)}" +go_path="${KUBEEDGE_ROOT}/_go" +cleanup() { + rm -rf "${go_path}" +} +trap "cleanup" EXIT SIGINT + +cleanup + +source "${KUBEEDGE_ROOT}"/hack/lib/util.sh +util:create_gopath_tree "${KUBEEDGE_ROOT}" "${go_path}" +export GOPATH="${go_path}" + ${KUBEEDGE_ROOT}/hack/generate-groups.sh "deepcopy,client,informer,lister" \ github.com/kubeedge/kubeedge/pkg/client github.com/kubeedge/kubeedge/pkg/apis \ "devices:v1alpha2 reliablesyncs:v1alpha1 rules:v1" \ |
