-
Notifications
You must be signed in to change notification settings - Fork 881
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
fix: Use chrono >= 0.4.34, < 0.4.40 to avoid breaking #7210
Conversation
If people may have pinned an older version of chrono, will cargo pick this patch release of arrow and error, or is it smart enough to sort things out? Wonder if we should use the disambiguification syntax for the backport instead... Thank you for doing this, I've already spent more time on this chrono nonsense than I hoped to, and have a depressingly long backlog of other work... Edit: another option would be to just constrain chrono to be less than the borked version... This would likely be the safest option... |
cargo will refuse to build if the user tries to use an old version of |
❤️, happy to provide help. I noticed your discussion with chrono, and in my opinion, the best approach is to use an API like |
In which case I think we should either change the constrain in this PR to be
Having a discussion is probably good just to surface this, although ultimately if chrono takes the policy it is, we effectively need to use disambiguification syntax for all traits where chrono traits are in scope - as they theoretically could conflict with any other trait in context. In this case the collision was with an extension trait, but theoretically the collisions are possible with any trait defined for both a chrono trait and another trait... It may be the only pragmatic approach is hope they don't break stuff, what the chrono maintainer effectively suggested, which leaves a bad taste in my mouth but may be the only option. |
Oh, I see. You mean we enforce users to use |
d67cb9b
to
43f193e
Compare
cc @tustvold, please let me know if this what you want. |
Signed-off-by: Xuanwo <github@xuanwo.io>
43f193e
to
9667428
Compare
# Rationale for this change chrono `v0.4.40` implemented a `quarter` method that causes build errors when building with arrow. See bug apache/arrow-rs#7196 and this commit apache/arrow-rs#7210. The suggested workaround is to pin chrono to `v0.4.39`. # What changes are included in this PR? - Pins chrono to the latest version that works with arrow, `v0.4.39` # Are these changes tested? Yes
Which issue does this PR close?
Part of #7209
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?