-
Notifications
You must be signed in to change notification settings - Fork 486
Can't build rust library with bazel coverage #1077
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
Comments
@illicitonion I found you are professional in this project, hope you can give me some help when you free. Thanks! |
Hi @rainingmaster - thanks for the detailed bug report! I've tried reproducing, and have a few follow-up questions:
Each of those re-builds I did with different deps lists produced a byte-for-byte identical library file, so I suspect just adding something to
One thing I will note is that I've found that if you just re-build the same stuff with coverage enabled, it will sometimes say no coverage information was found, but if you |
Hi, @illicitonion Thanks for your response!
|
Uh oh!
There was an error while loading. Please reload this page.
Background
We have a c++ project, it can use bazel very well to help we manage the dependency and compilation process. We recently tried to introduce rust. First of all, rust will be used in test cases, but we found that it seems to be compatible with
bazel coverage
. So We hope we can found some help here.A small case
I have try to add a repo show my problem: https://github.com/rainingmaster/bazel_combine
Env
And this is the rules_rust's version
Details
I have test in these ways:
: gap_lib
only//test/lib/cargo:rand_core
onlyAnd only 1, 2 can generate coverage well, 3, 4 will run successfully, but lose the coverage data. And here is my command.
I think there should be some difference between build by bazel(and rules_rust) and local rustc, so here is more details:
Following are the verbose for situtation 2
Following are output with
--subcommand
in bazel** In fact I have try to use bazel's args and build with local rustc, to found the difference, but it is still work :( **
Expectation
When I run with remote dependencies(or local dependencies), the coverage should be same with run without rust. I hope some one can help me with this problem. Thanks a lot!
The text was updated successfully, but these errors were encountered: