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

Gazelle now handles imports from @bazel_tools #273

Merged
merged 2 commits into from Oct 19, 2020

Conversation

achew22
Copy link
Member

@achew22 achew22 commented Sep 11, 2020

@bazel_tools is tricky since it is effectively a part of the standard
library that can not have a bzl_library attached to it. As a simple
fix for this, bzl_library can have a srcs dependency on it so that it
includes the transitive closure of all of its dependencies.

@bazel_tools imports are rewritten into the srcs attribute since
they are exports_filesed from the @bazel_tools.

@achew22
Copy link
Member Author

achew22 commented Sep 11, 2020

@segiddins I believe this addresses one of your manual changes. Could I have you give it a once over to verify it does.

@jayconrod could I have you take a look at this? Thanks so much!

@achew22 achew22 force-pushed the bazel_tools branch 2 times, most recently from 6b5f40d to b1f7d55 Compare September 11, 2020 16:33
@achew22
Copy link
Member Author

achew22 commented Sep 11, 2020

I've figured out how to satisfy buildifier's vengeful constraints and all the tests are green now and ready for review. Sorry about that!

@segiddins
Copy link
Contributor

@achew22 I was adding the .bzl source file into deps rather than srcs

@jayconrod
Copy link
Contributor

LGTM, but I don't have mergeability.

@achew22
Copy link
Member Author

achew22 commented Sep 11, 2020

@segiddins PTAL

@achew22
Copy link
Member Author

achew22 commented Sep 16, 2020

@jayconrod could I have you poke this one more time. I think (hope?) that your approval is now sufficient.

`@bazel_tools` is tricky since it is effectively a part of the standard
library that can not have a `bzl_library` attached to it. As a simple
fix for this, `bzl_library` can have a srcs dependency on it so that it
includes the transitive closure of all of its dependencies.

`@bazel_tools` imports are rewritten into the `srcs` attribute since
they are `exports_files`ed from the @bazel_tools.
@jayconrod
Copy link
Contributor

Approved, but I still can't merge anything in this repo.

@achew22
Copy link
Member Author

achew22 commented Sep 16, 2020

☹️ @c-parsons do you have any ideas on why Jay's approval isn't working? I hate to keep coming back to you to review stuff but I don't know how to fix this one

@achew22
Copy link
Member Author

achew22 commented Oct 19, 2020

@c-parsons friendly ping on this

@c-parsons
Copy link
Collaborator

Hmm, I'm not sure why Jay's approval still isn't working. :(
Regardless, have my approval.

@c-parsons c-parsons merged commit b2ffc94 into bazelbuild:master Oct 19, 2020
@achew22 achew22 deleted the bazel_tools branch October 20, 2020 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants