-
Notifications
You must be signed in to change notification settings - Fork 115
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
wrong commit message when cargo release --workspace is run with single crate #701
Comments
I'm sorry; somehow this fell through the cracks. I'm not able to reproduce this. Could you provide a sample repo with the exact commands you ran? |
Hi @epage, Here you have: https://github.com/psandana/cargo-release-issue-701. Use this command to reproduce: |
…dated commits Found when investigating crate-ci#701
They key reproduction step is using I did find that we weren't taking this into account when choosing the default commit message which is being fixed in #860 |
Summary
If a virtual workspace only contains a single crate, and the following line is run:
It produces the following commit message:
Expected
The expectation would be to use the single crate name, or, the list of crates and versions.
Root-cause
The following line introduces the issue:
cargo-release/src/config.rs
Line 460 in 9a4e0ce
It assumes if there is single crate, even if the user in purpose provided the
--workspace
argument, that will use the single crate mode, but it does not fetches the crate name correctly.Expected fixes
--workspace
argument and do not default to crate mode if len is 1, or,Extras:
Ideally, the
--workspace
argument should generate a commit listing all packages and their versions.The text was updated successfully, but these errors were encountered: