Skip to content
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

Move crate_root_src to utils.bzl #1570

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

hlopko
Copy link
Member

@hlopko hlopko commented Sep 29, 2022

The honest motivation for this little refactoring is https://github.com/google/crubit. In build rules that don't yet work in the open-source yet we need to patch rust.bzl with a custom logic encapsulated in a function (the function collects extra dependencies from aspects). This function is called from rust.bzl, and it needs to call crate_root_src. To prevent a load cycle I'm moving the function to utils.bzl. I understand that it would be much better to justify this PR with a working build rules in Crubit, but that's unfortunately not easily achievable yet.

@scentini scentini merged commit 86dc561 into bazelbuild:main Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants