Skip to content
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

cargo release version --dependent-version gives an invalid argument error #690

Open
teor2345 opened this issue Jul 3, 2023 · 2 comments
Labels
enhancement Improve the expected

Comments

@teor2345
Copy link

teor2345 commented Jul 3, 2023

When I run cargo release version --dependent-version fix patch, I get this error:

error: unexpected argument '--dependent-version' found

  tip: to pass '--dependent-version' as a value, use '-- --dependent-version'

Usage: cargo release version [OPTIONS] <LEVEL|VERSION>

But when I run cargo release --dependent-version fix patch, it works fine.

@epage
Copy link
Collaborator

epage commented Jul 4, 2023

Looks like its not supported (see cargo release version -h and not seeing a reason listed in #530 which added the version subcommand.

My suspicion is that its because cargo set-version (from cargo-edit) hard codes the behavior and wanting to push people in that direction in case to better understand the requirements around it.

@teor2345
Copy link
Author

teor2345 commented Jul 4, 2023

Currently we're using cargo release --no-publish --no-verify --no-tag --no-push --dependent-version fix as a workaround, but it still does a whole bunch of steps we don't want.

But I don't think --dependent-version fix or update will work for us anyway, because they change the versions in all dependent crates in the workspace.

We're actually looking for a workaround for a verification error caused by dependencies on unpublished crate versions. For the crates that errored, we set their dependencies to a published version, which fixes the errors. But then cargo update version goes and undoes that!

(I'll open a separate ticket for the actual error.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve the expected
Projects
None yet
Development

No branches or pull requests

2 participants