-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Rust: other crates in workspace are not updated #1207
Comments
Hmm, Dependabot should already be dealing with Rust workspaces just fine - can you tag |
@greysteil I've just tagged |
Great, thanks - I’ll check it out. |
I've just taken a look at the files Dependabot is processing from that repo. It looks like you have a You can fix the above by adding a Does the above make sense? I'll mark this as resolved if so. |
@greysteil, thanks for looking into it! Yeah, I thought the problem would be with And in order to bring the full support for the manifest file, Here's the full documentation in The Cargo Book: https://doc.rust-lang.org/cargo/reference/manifest.html#the-workspace-section |
Oh.. And another thing: I have all the workspace members specified in the |
Oh interesting, we should definitely do that! I'll get that fixed. |
Fixed in 9a08f39 which I'll deploy now. You'll want to remove the config file entries for everything other than the top-level |
@greysteil That's not a general fix. I have a [package]
# ...
[workspace]
members = ["not-a-path-dependency"]
[dependencies]
workspace-member = { path = "path-dependency" } Both |
Thanks for the report @hyd-dev. I don't work on Dependabot directly anymore, but if you or anyone else is up for submitting a pull request I'm sure the team would be delighted. GitHub-native Dependabot uses this library under the hood, so you're in the right place! |
I wish to submit a PR but I don't know Ruby at all. However the logic is simple: just appending |
According to dependabot/dependabot-core#1207 , other workspace crates should be picked up automagically, and they do error out as currently set up...
Let's say both root
Cargo.toml
andlibs/somelib/Cargo.toml
have dependencyA
. When dependencyA
is updated, I get a pull request only for the root crate (and no PR forsomelib
). That often leads to having different dependency versions. If some struct instances of the libraryA
are shared between the crates, that will definitely lead to a build failure.Here's a simplified example of a project structure I'm working on:
My
.dependabot/config.yml
:^ I hope I haven't misconfigured anything, please, correct me if the issue is just on my side. At least I can see all the specified crates in dependabot dashboard, so I assume my configuration is correct...
I believe #1190 can help making this workflow more convenient, but for now just several separate PRs would be nice to have.
The text was updated successfully, but these errors were encountered: