-
Notifications
You must be signed in to change notification settings - Fork 446
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
Declare dependencies in vendored crates #2246
Conversation
064306c
to
41030ae
Compare
Do you wanna update the examples in a separate PR as well to reduce the noise? |
@UebelAndre I can do so if you prefer, but I'm personally fine with it as is. Also, do you mean just the |
Just the missed examples. it would be good to keep this PR limited to only the changes made here. So yeah, anything that needs to be regenerated and includes additional stuff should be a separate change |
Ok, I just rebased, diffs look much cleaner now |
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.
Thanks! I had one more question 😄
@matts1 I think this is good to go pending a rebase |
This is required for bzlmod to vendor repos (https://docs.google.com/document/d/1dj8SN5L6nwhNOufNqjBhYkk5f-BJI_FPYWKxlB3GAmA/edit#heading=h.5mcn15i0e1ch) Change-Id: I00677170b37ab49f1eb5aefd701900371ed8ce24
Change-Id: Ic43373e989807503b4b68c96d9918bffcefa2880
@UebelAndre Fixed the merge conflicts by rebasing and rerunning vendor. |
Change-Id: I0047f977b0481a470e95d05d491ad6b52718b279
See #2246 for how we declare dependencies automatically for third party crates. I'm using the same mechanism for all other repositories. Note that the MODULE.bazel changes in use_repo are autogenerated, and if you change the third party crates you depend on, you should get an error message saying something like "run this command to fix it" on your bzlmod presubmit environment.
Currently, when you run
bazel build --enable_bzlmod //crate_universe:bin
, you get the errorundefined repo @cui
.When you add a dependency on CUI, you get errors like
undefined repo @cui__<crate>-<version>
(the repo for the third party crate).This change will allow us to automatically declare dependencies on our third party crates from bzlmod (see https://docs.google.com/document/d/1dj8SN5L6nwhNOufNqjBhYkk5f-BJI_FPYWKxlB3GAmA/edit#heading=h.5mcn15i0e1ch).