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

Dont check in the grammar, but generate it at release time #2145

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jneem
Copy link
Member

@jneem jneem commented Jan 24, 2025

This is an alternative to #2141, that avoids checking in a 22MB generated file. Here, we generate the grammar at cargo publish time. The main disadvantage of this one is that it's hard to test: although I've tested the individual commands, I haven't tested the release script as a whole because I didn't want to push changes to the stable branch.

I've simplified the build script so that it doesn't try to check the freshness of the generated grammar: it assumes that if there's a generated grammar already present then it's fresh. In principle the published crate could have an even simpler build process (with no build-dependency on lalrpop) but that would introduce more hard-to-test release stuff so I haven't gone that route.

@jneem jneem requested review from yannham and aspiwack January 24, 2025 05:00
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

Successfully merging this pull request may close these issues.

1 participant