uv lock --upgrade
should add an additional marker for major version upgrades
#10842
Labels
cli
Related to the command line interface
enhancement
New feature or improvement to existing functionality
Summary
A symbol (like a
!
) at the end of the linesUpdated v... -> v...
where a major version is bumped (and as a moonshot, for the minor version where they are similarly significant) would make changes much easier to review.The more direct context is that we have a monorepo with several independent uv projects, and run
uv lock --upgrade
on a cron on all of them. We put theUpdated
logs into the PR description for the papertrail, but also to help the reviewer, and having a symbol to easily check these lines would make it much easier to narrow down the expected scope of impact. Currently we parse and usepython-packaging
to inject these.Willing to PR if this seems reasonable, just using
PythonVersion::major
.Couple add-ons:
Update
based on whether the version increased or decreased, and use appropriate symbolsExample
This is what I'm currently doing with some manual parsing:
(+/- for added/removed, > for upgraded, ≫ for major version upgraded; I have been trying to
think of something that stands out more than ≫ -
›
for a normal upgrade and>
for majorworks, but just looks a bit weird - any of these are fine by me)
Example for the alternative:
with emojis (could also be▶️ /⏩):
I mostly chose to do it this way to have a constant-sized column at the beginning since it's
visually easy to grok, but any kind of indication would be good enough. Particularly, I think
being able to clearly distinguish the lines even without color would be great, since you won't
be able to preserve that while posting comments/PRs. I don't have strong opinions myself about
sticking to the ASCII chart, using emojis, etc.
One kinda neat thing about
+/-/!
is that those lines can be colored using GitHub'sdiff
syntax highlighter, but the problem there is typically we wouldn't care about tertiary
dependencies being added/removed, and those are the ones that would stand out the most,
and major upgrades don't stand out:
I understand these are all bigger changes; just showing what I've been doing. Any kind of visual
marker that helps things stand out is good enough.
The text was updated successfully, but these errors were encountered: