rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Add `--git-repos` flag to `cargo update`

Open EvanCarroll opened this issue 3 years ago • 0 comments

I've observed a case where a developer was pinning everything inside of Cargo.toml except their Git Repositories for the mere benefit of having an easy method to update all of their git dependencies. All of their internal crates were in git repositories. That is to say all of their versions strings where like =0.1.2. This presents a problem as you have to sacrifice the intended functionality of cargo update which can provide security patches and ease upgrades.

Currently, there is a better way to do this with cargo update -p foo -p bar. It would be nice if we could do cargo update --git-repos which would update only the git repositories such that effectively everything else was ignored (or pinned to the current version).

EvanCarroll avatar Aug 03 '22 17:08 EvanCarroll