Fix sfv breaking changes#569
Conversation
fbb73bb to
e16ab9f
Compare
|
Maybe it makes sense to fix the version to Today I was surprised to find that the assembly pipelines in my project had collapsed. This would avoid unpredictable behavior. |
|
I believe you mean I did mention that in the PR description. @zonblade has create a PR with the temporary fix here: #572, although I'm not sure if the full 'patch' pin is necessary. This PR is primarily for fixing |
Two days ago sfv 0.11.0 was published on crates.io (https://crates.io/crates/sfv) so @ibatanov was right, it's 11, not 10. |
I understand that, but he is saying the fix is to pin the version to 0.11, which is the new version that breaks current pingora. |
My bad, I thought this is a fix of Pingora so it can run with sfv 0.11.0. |
I see. I understood his message as suggesting the temporary fix (as done in #572). I think you are correct. Specifying the full version in this PR could be a good idea to make sure pingora is further protected against similar updates. |
misunderstood me, the fix is what you wrote, plus I meant to fix the version ;) |
|
This is out of scope for this fix but would it also make sense to pin this dependency and any similar pre-v1? |
|
Can the fix above be merged? Without it, one cannot compile latest |
|
Sorry for the delay, we had an internal commit synced fixing the issue here. |
|
Re-opening as I believe the intention here is to actually upgrade. Breaking build is fixed though as of cb35ff7. |
oh, good good. 🤔 |
c1d8a1a to
7d49613
Compare
|
@andrewhavck Do you want to bump the MSRV to 1.77.0 in this as well? |
|
I went ahead and added a commit to bump the MSRV to 1.77.0. I can revert it if desired. Just to make sure the context around this MSRV change is clear: I mentioned on the 'quick fix' PR (#572 (comment)) that
|
baf7c18 to
08109c8
Compare
|
I noticed there were some changes merged in around the MSRV. I removed the code around MSRV in this PR to limit the affected changes since the pipeline should pass with what is now on main. |
This fixes the compilation errors introduced in
sfv0.11. (fixes #568)Parser::{from_bytes, from_str}was merged intoParser::new: undef1nd/sfv#158GenericBareItem::bare_item.as_tokenwas updated to return&TokenRef, which needs to be converted to a&strexplicitly: undef1nd/sfv#159sfvs MSRV was set to 1.77 as well with their change: undef1nd/sfv#160.There was already an implied 1.77 MSRV, even in 0.10.4. The update they made to 0.11.0 just made it explicit: undef1nd/sfv#142
This means that the pingora msrv would need to be bumped as well. Assuming that means that the changes in this PR would need to be a major change in pingora.
Let me know your thoughts. Thanks!