Skip to content

Upgrade annotate-snippets to 0.9.1 #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zanieb
Copy link

@zanieb zanieb commented Jun 3, 2023

Hi!

This upgrades use of the annotate-snippets dependency to be compatible with the latest version — 0.9.1.

They made a few changes, notably:

I'm new to Rust so any feedback is very welcome! I'm not sure but I presume the changes from impl ToString to &'a str are not always backwards compatible?

@jelmer
Copy link

jelmer commented Aug 15, 2023

This would be great to see land - I've just cherry-picked it for the debian package of chic.

@sgammon
Copy link

sgammon commented Jun 29, 2024

@zanieb fancy seeing you here

@zanieb
Copy link
Author

zanieb commented Jun 29, 2024

:) my pre-hire ambition to make Astral's Ruff builds a tiny bit faster by de-duplicating dependencies. Maybe I should revisit this now that I actually know Rust!

@jelmer
Copy link

jelmer commented Jun 29, 2024

@yoshuawuyts anything we can do to help this land?

@zanieb
Copy link
Author

zanieb commented Jun 29, 2024

There hasn't been a commit here in 5 years, it seems unlikely? Are you looking for a new maintainer?

@zanieb zanieb force-pushed the upgrade/annotate-snippets branch 2 times, most recently from 1f3d0e4 to 27c99b5 Compare October 1, 2024 21:27
@plugwash
Copy link

plugwash commented Oct 2, 2024

For what it's worth I just prepared patches for Debian building on top of our cherry-pick of this patch, upgrading to 0.10 and 0.11.

https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/chic/debian/patches/annotate-snippets-0.10

https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/chic/debian/patches/annotate-snippets-0.11

@decathorpe
Copy link

I've taken these patches and applied them to the Fedora package too, but it looks like they actually introduce unintentional API changes, which make the libcst crate fail to compile :(

@zanieb
Copy link
Author

zanieb commented Feb 19, 2025

Yeah I made these changes before I really knew Rust — these are definitely breaking changes and should come with a version bump. It doesn't really seem worth creating a non-breaking patch? I could look into it if it's meaningful though.

It looks Debian applies this https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/libcst/debian/patches/chic-api

@decathorpe
Copy link

Oh, great, looks like I can just take that additional patch, thanks!

@zanieb
Copy link
Author

zanieb commented Feb 19, 2025

The downstream packaging toil has prompted me to go try to fix this at the source Instagram/LibCST#1293

@zanieb
Copy link
Author

zanieb commented Feb 24, 2025

And that's been merged! Since it's unmaintained, hopefully this just removes chic from your dependency tree.

Let me know if there's another common package depending on it.

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.

5 participants