-
Notifications
You must be signed in to change notification settings - Fork 43
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
codegen output and GIT #416
Comments
As the codegen files (at least the settings files) are not really required for runs, could we generate them as part of the packaging and not really commit them into git? |
@lagacep-ans Patrick, are you seeing differences even if you |
Yeah, we could do that, though it takes some time to build the different modules, and we would have to generate the documentation from them right. |
I think the code generator was updated but possibly the generated files were never merged. @V-Dandekar Do you know anything about this? |
or... some flake/black/isort... was executed on these files. but these are part of the exception rules for the precommit hooks |
@lagacep-ans @h-krishnan, With codegen the files are generated but we need to run "make" to format them before we commit (Which shouldn't be any extra effort as it is recommended for any normal commit too.) Please run make and then check the diff. If we decide to generate files on server then we will have to ensure that make is run after that. Or modify the script that will comply with formatting rules. But I think running make is easier since it is difficult to code the formatting and we may always end up in a corner case |
In the makefile the commands are there to regenerate it properly, so you just type this:
and that should give the final output. You should not need to run pre-commit or anything I think. You are right about windows and make. For the documentation at least I made a make.bat, but we could do something similar for the main Makefile. You would need to update things 2x but it's kind of the way it is unless we use a consistent make system on both platforms. |
Note that, the |
Removed the generated files and generating those files under packaging in PR 420. |
If you run the codegen tools, for an up to date version of the APIs, you'll end up with many GIT "modified files" created by that operation.
Should we tackle this by having two locations for the APIs?
The text was updated successfully, but these errors were encountered: