-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Breaking changes in latest release #672
Comments
Upstream issue: Keats/tera#739 |
Thanks for the report! |
I believe the culprit is here: 723d006
(from pest/derive/src/lib.rs) and the new
|
I tried fixing the path in Tera, a lot of other errors appeared after
|
@regar42 I've also "bisected" this to be caused by #522; that change doesn't account for modules/folders deeper than @mockersf Indeed, when fixing the relative path for |
Could we maybe yank the release 2.2.0 until this is fixed? 😊 |
It's yanked now. |
@MarijnS95 yes: #673
I'm not sure if there are any other sneaky breaking changes. |
@tomtau Tested, fixes the errors again! Note that I couldn't use your branch as a patch as it started complain about |
Thank you very much for the prompt fix! |
Yeah, that's (unfortunately) a known issue. I've tried multiple times to come up with a scheme that allows bootstrap to run automatically for git dependencies and local development but be precompiled for crates-io usage, and it's unfortunately just not a use case that cargo lends itself to. The most resilient choice seems to be committing the generated file(s) and updating it in a test (this is what r-a does), but our bootstrapped parser changes much more frequently than r-a's generated AST types, so doing so would cause us to run into significantly more conflicts from committing the generated file. ....But now I've come up with a super sketchy idea for a |
This may not help for automated merges on GitHub etc., but looking into solutions I found an approach that can ease the pain of merging generated files during local dev: https://www.charpeni.com/blog/use-custom-merge-driver-to-simplify-git-conflicts Pest is used by a lot of popular crates (good job!), and having a transitive dependency sometimes fail to compile and require manual intervention (or trying again and again until after 15 minutes it randomly worked, according to a friend) isn't ideal. I hope you can find a relatively painless solution! |
The most recent minor version release has breaking changes in it, which appears to have broken tera.
This in turn broke our CI; see this failed run.
The text was updated successfully, but these errors were encountered: