-
Notifications
You must be signed in to change notification settings - Fork 431
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
draft: fix data and compile_data for rust_doc #1741
draft: fix data and compile_data for rust_doc #1741
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
d8571bb
to
b90473b
Compare
Thanks for putting together this fix! It looks like the issue is that whenever we construct a I think to fix this we'd need to:
Then I suspect your change will start working 🤞 |
4585922
to
7dd5c9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Last up, can you add a test which was failing without this change, which shows rust_doc now works with compile_data?
Thanks!
Add compile_data_targets attribute to CrateInfo in order to inherit properly in rust_doc and rust_test.
7dd5c9f
to
04b480d
Compare
34dc954
to
951af78
Compare
For the record, the added test would fail on main branch at build time with the following error:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for putting this all together! Two tiny suggestions and we're good to go!
Try to fix #1572
Main issue is that data_paths do not inherit from original crate when building rust_doc (and probably rust_test).
The main idea is to rely on crate_info which inherit correctly from original crate.
Issue with this draft is that compile_data is filed with File instead of Target when building 3rd party crate.