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

Releasing a workspace does not update local path dependencies #223

Closed
sebschmi opened this issue Jul 22, 2020 · 11 comments
Closed

Releasing a workspace does not update local path dependencies #223

sebschmi opened this issue Jul 22, 2020 · 11 comments

Comments

@sebschmi
Copy link
Contributor

I have a workspace with multiple crates that depend on each other, with the dependency specified via a path. Before release, I had the following dependencies of the genome-graph crate:

[dependencies]
bigraph = {path = "../bigraph", version = "0.1.0-alpha.4"}
compact-genome = {path = "../compact-genome", version = "0.1.0-alpha.4"}
num-traits = "0.2"
bio = "0.31"
error-chain = "0.12"

The version of bigraph in the workspace was 0.1.0-alpha.4.
I then executed cargo release alpha on the workspace root, which bumped the versions of all crates and released them as expected. But it did NOT bump the versions in the [dependencies] sections. As a result, the released genome-graph crate has version 0.1.0-alpha.5, but still points to bigraph version 0.1.0-alpha.4, which is wrong.

How do I get cargo-release to bump also the versions in the declaractions of [dependencies]?

@epage
Copy link
Collaborator

epage commented Jul 22, 2020

For anyone else wanting more details, the crate is at https://github.com/algbio/practical-omnitigs/tree/master/implementation

@epage
Copy link
Collaborator

epage commented Jul 22, 2020

The only thing I can think of is #206 where we update dependents in a workspace when doing the regular version bump but then don't during the post-release version bump.

Does that look like your issue?

@sebschmi
Copy link
Contributor Author

sebschmi commented Jul 23, 2020

Thank you for the quick answer.
That looks similar. I am currently at cargo-release 0.13.4. Does updating to 0.13.5 include the pull request (#209) mentioned in #206?

@epage
Copy link
Collaborator

epage commented Jul 23, 2020

Hmm, looks like #209 was included in 0.13.4

@sebschmi
Copy link
Contributor Author

sebschmi commented Aug 4, 2020 via email

@sebschmi
Copy link
Contributor Author

sebschmi commented Aug 4, 2020 via email

@sebschmi
Copy link
Contributor Author

sebschmi commented Aug 4, 2020 via email

@tylerhawkes
Copy link

I'm also running into this right now

@vadixidav
Copy link

vadixidav commented Jan 11, 2021

Hitting this issue on an internal project. Many workspaces are interdependent, so this seems pretty crucial. Temporarily I am just going to remove the versions. For projects that are public (in my case the Rust CV org cv repo) the versions need to be there so they can all be published to crates.io.

@epage
Copy link
Collaborator

epage commented Aug 12, 2021

#295 resolved #206.

If people are running a version with #295, could you include the output with logging including trace? Otherwise, there is not enough information here to root cause.

@epage
Copy link
Collaborator

epage commented Aug 25, 2021

Goling ahead and closing

@epage epage closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants