-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Wrong Github link in auto-generated README #952
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
Comments
I investigated this issue. The problem seems to have a root in the following lines of codes in kubernetes-client/gen:openapi/python.sh
Reference: https://github.com/kubernetes-client/gen/blob/master/openapi/python.sh#L57-58 What is happening here is the first line replaces all instances of One quick solution to this would be to add a line after the above code:
I believe a long term solution is make the string replacement is the README templates robust and removing the above hacks. |
/cc @roycaihw |
/assign |
Filed issue kubernetes-client/gen#133 to track this. |
Filed a PR kubernetes-client/gen#134 to resolve this. |
This issue has been fixed by kubernetes-client/gen#134. We should close this now maybe. |
Thanks for the fix! /close |
@roycaihw: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened (please include outputs or screenshots):
ref #931 (comment)
What you expected to happen:
the generated address should be
git+https://github.com/kubernetes-client/python.git
How to reproduce it (as minimally and precisely as possible):
run
scripts/update-client.sh
, and see the link inkubernetes/README.md
Anything else we need to know?:
This has been happening since we graduated this repo from
kubernetes-incubator/client-python
tokubernetes-client/python
The link seems to be composed as
according to https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/python/README.md#pip-install
however, the IDs that we use in
gen
repo look reasonable: https://github.com/kubernetes-client/gen/blob/795993978f8563a9c09089993be4d2b97d492eec/openapi/python.xml#L22-L23Environment:
python --version
): 2.7.12pip list | grep kubernetes
): master branch HEADThe text was updated successfully, but these errors were encountered: