Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange backup in hack/python-sdk/gen-sdk.sh #572

Open
lowang-bh opened this issue Jun 22, 2023 · 2 comments
Open

strange backup in hack/python-sdk/gen-sdk.sh #572

lowang-bh opened this issue Jun 22, 2023 · 2 comments

Comments

@lowang-bh
Copy link
Member

  1. backup old generated file

    mv pkg/apis/kubeflow/v2beta1/openapi_generated.go pkg/apis/kubeflow/v2beta1/openapi_generated.go.backup

  2. Then mv backup to cover new generated file event if new generated succeed

    mv pkg/apis/kubeflow/v2beta1/openapi_generated.go.backup pkg/apis/kubeflow/v2beta1/openapi_generated.go

Why need to cover new generated file with old one?

@lowang-bh lowang-bh changed the title strage backup in hack/python-sdk/gen-sdk.sh strange backup in hack/python-sdk/gen-sdk.sh Jun 22, 2023
@tenzen-y
Copy link
Member

When we fail to generate codes on our local, we can restore original files from backup.

@lowang-bh
Copy link
Member Author

When we fail to generate codes on our local, we can restore original files from backup.

But it will also cover new generated file when succeed, that's also as expect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants