-
Notifications
You must be signed in to change notification settings - Fork 17
feat: unify ANTLR setup and add pre_push make target #131
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
base: main
Are you sure you want to change the base?
Conversation
| format: | ||
| uvx [email protected] format | ||
|
|
||
| pre_push: format lint_fix antlr codegen-extensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should switch this to make codegen now
| antlr: setup-antlr | ||
| cd third_party/substrait/grammar \ | ||
| && java -jar ${ANTLR_JAR} -o ../../../src/substrait/gen/antlr -Dlanguage=Python3 SubstraitType.g4 \ | ||
| && java -jar ../../../lib/antlr-complete.jar -o ../../../src/substrait/gen/antlr -Dlanguage=Python3 SubstraitType.g4 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand why this hardcoded path will always work..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script is designed to download the ANTLR JAR file to that specific, project dir/lib. This approach is consistent with the relative path used for the ../../../src directory.
Uh oh!
There was an error while loading. Please reload this page.