-
Notifications
You must be signed in to change notification settings - Fork 1
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
Option to not bump versions of already released crates #4
Comments
I'd even say not bumping and re-relasing already released crates should be the default? It seems like the most common behaviour. |
That's implies that the tool has to check "the crate's dependency graph" and compare each dep's version to previous release on crates.io if one exist otherwise do nothing. So that should be possible but requires some work. Alternatively, the tool could also initially bump the versions of all crates which depends on the updated crates "not only its dependencies". To elaborate if I want to bump I'm still in favor what you are suggesting @dvdplm but |
Right, I somehow thought it already did this through the crates.io API. We are probably already using |
I think this code section is the most pertaining to the scenario (note the comment) Lines 259 to 263 in 4871f8d
There's a function to decide on if a crate needs publishing by comparing its contents against crates.io Lines 186 to 193 in 4871f8d
But as far as I can tell that check only matters for the crates you've selected on the CLI, not their dependents. Any dependents of the input crates are automatically set for publishing without first comparing them against crates.io, as per the start of this post. |
FWIW I thought that it did check all dependents and only bumped versions when it detected some change in them (or some change in their dependencies which mean they need bumping too). |
Recently we released new versions of
sp-core
andsp-runtime
using subpub paritytech/substrate#12599. A follow up was required to release a couple of higher level crates: paritytech/substrate#12716.However using
subpub
tried to bump all those already released crates again:I did it manually in the end which was fairly simple, however it would be good to be able to have an option to not bump all those already released crates. Either explicitly exclude some crates by name e.g.
sp-core
or specify to only bump the crate to be released.The text was updated successfully, but these errors were encountered: