-
Notifications
You must be signed in to change notification settings - Fork 58
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
autorest --postprocess script raises FileNotFoundError #1465
Comments
Here is the postprocessing: https://github.com/Azure/autorest.python/blob/autorestv3/docs/customizations.md#postprocessing information. @msyyc @changlong-liu can you guys take a look? I did a quick hacky way of getting a postprocessing step, looks like it can be improved. |
Sure @iscai-msft . Hi @kristapratico , And will this problem still occur after doing below local cleaning steps?
|
Thanks @changlong-liu
Yes. Upon doing a reset and deleting the .temp folder I was able to run the script. However, this seems to have regenerated in a way that breaks the code. I've pushed the output from script here: https://github.com/Azure/azure-sdk-for-python/compare/main...kristapratico:azure-sdk-for-python:qa-fix-lint?expand=1 |
Thanks @kristapratico! I have the same situation now. Looks like the problem of the generation is that it falsely modified the below two file:
I guess the "authoring" is manually copied to the generated "questionanswering"? I think currently the As a temporary solution, will it be non breaking if you revert these two files? |
I need to use the postprocessing script on the Question Answering client library for Python to avoid a linting error. Issue describing that here: Azure/azure-sdk-for-python#25557
When I run the postprocessing script, I'm getting a FileNotFoundError:
swagger README is here (if you need it): https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cognitivelanguage/azure-ai-language-questionanswering/swagger/README.md
The text was updated successfully, but these errors were encountered: