Skip to content

Gazelle now handles imports from @bazel_tools#273

Merged
c-parsons merged 2 commits intobazelbuild:masterfrom
achew22:bazel_tools
Oct 19, 2020
Merged

Gazelle now handles imports from @bazel_tools#273
c-parsons merged 2 commits intobazelbuild:masterfrom
achew22:bazel_tools

Conversation

@achew22
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@jayconrod
Copy link
Copy Markdown
Contributor

LGTM, but I don't have mergeability.

@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Sep 11, 2020

@segiddins PTAL

@achew22
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@achew22
Copy link
Copy Markdown
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
Copy Markdown
Member Author

achew22 commented Oct 19, 2020

@c-parsons friendly ping on this

@c-parsons
Copy link
Copy Markdown
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.

5 participants