Problem statement
When working with private cargo registries I want to be able to scope packages I want to upgrade to ones from specific registry.
For example if at work I use private registry for internal libraries I would want to upgrade internal libraries separately from crates.io dependencies. Such ability would be especially useful in CI to automatically create issues or PRs when internal library has new version released.
Proposal
I want to add --registry flag to cargo-upgrade (in dependencies section). It should take as an argument a <name> which is defined in [registries] table in cargo configuration. By specifying this flag only crates from this registry will be considered when running any cargo-upgrade commands. The flag can be passed multiple times to specify a list of registries.
Open Questions
Prior art
I am not aware of any cargo plugin, which would allow for filtering on registry basis.
Tracking issue for upgrades in the cargo upstream also does not include such functionality (see rust-lang/cargo#12425). Although in the end I think this should be added to the upstream, it is probably better to implement this here first.
Implementation
If this issue gets accepted, I am ready to implement it.
Problem statement
When working with private cargo registries I want to be able to scope packages I want to upgrade to ones from specific registry.
For example if at work I use private registry for internal libraries I would want to upgrade internal libraries separately from crates.io dependencies. Such ability would be especially useful in CI to automatically create issues or PRs when internal library has new version released.
Proposal
I want to add
--registryflag tocargo-upgrade(in dependencies section). It should take as an argument a<name>which is defined in[registries]table in cargo configuration. By specifying this flag only crates from this registry will be considered when running anycargo-upgradecommands. The flag can be passed multiple times to specify a list of registries.Open Questions
--registryflag treatcrates-ioas a special value? Or maybe there should be--default-registryflag?source.<name>.registrybe allowed as--registryflag values?Prior art
I am not aware of any cargo plugin, which would allow for filtering on registry basis.
Tracking issue for upgrades in the
cargoupstream also does not include such functionality (see rust-lang/cargo#12425). Although in the end I think this should be added to the upstream, it is probably better to implement this here first.Implementation
If this issue gets accepted, I am ready to implement it.