Skip to content

Export .bzl files in @bazel_tools//tools/...#12258

Closed
achew22 wants to merge 1 commit intobazelbuild:masterfrom
achew22:patch-1
Closed

Export .bzl files in @bazel_tools//tools/...#12258
achew22 wants to merge 1 commit intobazelbuild:masterfrom
achew22:patch-1

Conversation

@achew22
Copy link
Copy Markdown
Member

@achew22 achew22 commented Oct 13, 2020

With this change it is now possible to create a bzl_library entry that has a deps entry for all its inputs.

@google-cla google-cla Bot added the cla: yes label Oct 13, 2020
@aiuto aiuto requested a review from c-parsons October 15, 2020 03:24
@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 20, 2020

@c-parsons friendly ping

@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 23, 2020

@c-parsons friendly ping on this

@jin
Copy link
Copy Markdown
Member

jin commented Oct 26, 2020

This seems to be blocking rules_go from working nicely with Stardoc according to bazel-contrib/bazel-gazelle#760 (comment). @c-parsons, could you take a look please?

@jin
Copy link
Copy Markdown
Member

jin commented Oct 26, 2020

cc @alandonovan and @brandjon as the owners of Starlark docgen tooling

@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 26, 2020

As a note, I think that something like this needs to be done for every .bzl file in @bazel_tools and related repos since stardoc requires all files that were transitively loaded to be in the data dependency for parsing. Unfortunately I haven't been able to come up with a clever way to test this and ensure the transitive set of loads is visible with just this change because I'm blocked on a more general error in Stardoc

@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 27, 2020

Friendly ping

@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 28, 2020

Even friendlier ping

@jin
Copy link
Copy Markdown
Member

jin commented Oct 28, 2020

@brandjon could you take a look at this please?

With this change it is now possible to create a `bzl_library` entry that has a `deps` entry for all its inputs.
@achew22 achew22 changed the title Export .bzl files in @bazel_tools//tools/build_defs/repo Export .bzl files in @bazel_tools//tools/... Oct 28, 2020
@achew22
Copy link
Copy Markdown
Member Author

achew22 commented Oct 29, 2020

Friendly ping

@bazel-io bazel-io closed this in fb309f3 Nov 2, 2020
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