-
Notifications
You must be signed in to change notification settings - Fork 46
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
CargoMetadata doesn't work when udeps is building code #97
Comments
I think it's because the cargo-udeps binary acts as cargo binary, and when the build.rs script tries to run cargo metadata, it invokes cargo-udeps with the metadata subcommand, which it doesn't recognize I think? Not sure. |
@est31 Here's a minimal reproducible example. It might be an issue with the build_info crate I am using, but not sure at the moment. The stack trace is originating at the
|
@est31 were you able to find out why this is happening? I tried to look into the code, but couldn't figure this out. |
@jvimal-eg have you got my reply? Cargo udeps needs to be able to be called with the metadata subcommand. I'm just not sure how to implement this nicely. |
I confirm I have the same issue when having |
@est31 so basically |
It depends on what the build.rs tries to do. If it calls cargo metadata, it might cause issues, yes. |
It doesn't work with the build script: est31/cargo-udeps#97
It doesn't work with the build script: est31/cargo-udeps#97
I am trying to run udeps on a workspace with many crates, and I see this error below:
The build.rs file line 2 where the stack trace points to doesn't have anything. I think it's probably a function call injected into the build script by cargo that's looking for project metadata?
I can't --exclude this crate because it's a common dependency across other crates in the workspace.
Any thoughts on what could be the issue?
The text was updated successfully, but these errors were encountered: