Skip to content

Commit

Permalink
Add missing Starlark files to “all_rules” targets. (bazel-contrib#2434)
Browse files Browse the repository at this point in the history
This is important for Stardoc, which insists on knowing about all transitively
loaded Starlark files.
  • Loading branch information
phst authored Apr 16, 2020
1 parent 6d41742 commit cf9c0ea
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ filegroup(

filegroup(
name = "all_rules",
srcs = glob(["*.bzl"]) + ["//go/private:all_rules"],
srcs = glob(["*.bzl"]) + [
"//go/platform:all_rules",
"//go/private:all_rules",
"//go/toolchain:all_rules",
],
visibility = ["//visibility:public"],
)

Expand Down
6 changes: 6 additions & 0 deletions go/platform/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ package(default_visibility = ["//visibility:public"])

declare_config_settings()

filegroup(
name = "all_rules",
srcs = glob(["*.bzl"]),
visibility = ["//visibility:public"],
)

filegroup(
name = "all_files",
testonly = True,
Expand Down
6 changes: 6 additions & 0 deletions go/toolchain/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ package(default_visibility = ["//visibility:public"])

declare_constraints()

filegroup(
name = "all_rules",
srcs = glob(["*.bzl"]),
visibility = ["//visibility:public"],
)

filegroup(
name = "all_files",
testonly = True,
Expand Down

0 comments on commit cf9c0ea

Please sign in to comment.