# Feedback on \`cargo-upgrade\` to prepare it for merging

**URL:** <https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101>\
**Category:** cargo\
**Created:** [July 29, 2022, 5:08pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101 "2022-07-29T17:08:43Z")\
**Posts on this page:** 6\
**Page:** 8

<div class="post-metadata">

**Author:** ![epage](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/epage/32/3171_2.png) [@epage](https://internals.rust-lang.org/u/epage)\
**Post date:** [July 29, 2023, 12:34am UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/143 "2023-07-29T00:34:29Z")

</div>

Yes, that workflow is important. I accidentally made it more broad than intended by not clarifying that I mean within `cargo update`. Even then, I do leave room open for it. I just don't want to block progress on it here and I want to make my stance sufficiently clear to help guide those future discussions.

---

<div class="post-metadata">

**Author:** ![robinm](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/robinm/32/6255_2.png) [@robinm](https://internals.rust-lang.org/u/robinm)\
**Post date:** [July 29, 2023, 7:36am UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/144 "2023-07-29T07:36:05Z")

</div>

Just a quick remark. Every time I see the `-i` option I think it's for “interactive” (like in git), which could be useful in the future if we want to add a mode where the tool tell what it is going to do and ask for confirmation (or even select which dependency to update).

---

<div class="post-metadata">

**Author:** ![cgwalters](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/cgwalters/32/1065_2.png) [@cgwalters](https://internals.rust-lang.org/u/cgwalters)\
**Post date:** [July 29, 2023, 3:36pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/145 "2023-07-29T15:36:06Z")

</div>

I looked through this again, and (somewhat superficially) it seems to make sense.

But, there is so much complexity and mental overhead. It simply gets difficult to track a large set of dependencies.

I **really** liked the earlier discussions of a global [crates.io](http://crates.io) version.

Something like `cargo update —registry crates.io=20230728.3` to revert everything to a previous snapshot to bisect a regression. And `cargo update —registry crates.io —except tokio` to keep just tokio pinned, etc.

When one has a lot of git repositories with things like dependabot operating on them, there can just be unnecessary drift in lockfiles due to timing. With a global [crates.io](http://crates.io) version, I have just one number I need to think about in the general/default case.

---

<div class="post-metadata">

**Author:** ![epage](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/epage/32/3171_2.png) [@epage](https://internals.rust-lang.org/u/epage)\
**Post date:** [July 29, 2023, 8:37pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/146 "2023-07-29T20:37:41Z")

</div>

[#5221](https://github.com/rust-lang/cargo/issues/5221) is the issue for that. I suspect the main implementation complexity is having some kind of ordered marker that we can filter the packages by.

---

<div class="post-metadata">

**Author:** ![djc](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/djc/32/1592_2.png) [@djc](https://internals.rust-lang.org/u/djc)\
**Post date:** [August 8, 2023, 6:58pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/147 "2023-08-08T18:58:37Z")

</div>

Apparently this made it into a proposal in the Cargo repo:

> <https://github.com/rust-lang/cargo/issues/12425>
>
> \### Problem
> 
> A lot of incompatible upgrades have a small enough of breakages tha…t a "upgrade all of my incompatible version requirements" would make it easier to go through this process.
> 
> This is currently exposed in the \`cargo upgrade\` command
> 
> \### Proposed Solution
> 
> See https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/141
> 
> \### Notes
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![steffahn](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/steffahn/32/13288_2.png) [@steffahn](https://internals.rust-lang.org/u/steffahn)\
**Post date:** [January 29, 2025, 6:58pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101/148 "2025-01-29T18:58:39Z")

</div>

Closed on January 29, 2025, 6:58pm UTC

This topic was automatically closed 540 days after the last reply. New replies are no longer allowed.

[Previous page](https://internals.rust-lang.org/t/feedback-on-cargo-upgrade-to-prepare-it-for-merging/17101.md?page=7)
