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
Maintain dependency semver ranges when publishing new versions #11
Comments
@XAMPPRocky There's an |
Right, but my point is that if I have already specified |
Unfortunately I decided not to do it that way due to design considerations. I wanted all the behaviour to be a bit explicit. |
That's unfortunate, I don't really think this is really explicit however more than unintuitive. It would be explicit it if I was asked to pick a semver requirement when publishing. Currently it just incorrectly assumes I want the default |
I am thinking about this and what do you think should happen when only some of them have |
I would expect that the tool handles it on a case by case basis. If someone's workspace has multiple different semver requirements on the same crate that's their problem in my opinion. If they want to switch to using a single one they can use the |
Maybe you are looking for a configuration setting to save this behaviour description? I would have to think on this a bit before I make any changes. Thanks for creating the issue. |
Hey, I was using
cargo-ws
to publish a new release and I noticed a unintuitive behaviour where it doesn't keep the semver range I set when it needs to update a dependency. For example let's say we have two cratesfoo
andfoo-macros
.foo-macros
's Cargo.tomlfoo
's Cargo.tomlWhen I update
foo-macros
to0.2.1
,cargo-ws
will also update foo's dependency offoo-macros
and set it from=0.2.0
to0.2.1
so that the crate can be compiled and published. However this now means that the next time I runcargo ws publish
and release 0.2.2of
foo-macrosthen
foowill not be updated because
0.2.2is semver compatible with
0.2.1` which isn't what I want. I want to ensure that both crates are always the same version.The text was updated successfully, but these errors were encountered: