Skip to content

Commit

Permalink
Recursive filegroups
Browse files Browse the repository at this point in the history
  • Loading branch information
achew22 committed Oct 22, 2020
1 parent 073384d commit c13dab2
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 2 deletions.
14 changes: 12 additions & 2 deletions go/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

filegroup(
name = "all_rules",
srcs = glob(["**/*.bzl"]),
srcs = [
"//go/private/actions:all_rules",
"//go/private/rules:all_rules",
"//go/private/skylib/lib:all_rules",
"//go/private/tools:all_rules",
] + glob(["**/*.bzl"]),
visibility = ["//visibility:public"],
)

filegroup(
name = "all_files",
testonly = True,
srcs = glob(["**"]),
srcs = [
"//go/private/actions:all_files",
"//go/private/rules:all_files",
"//go/private/skylib/lib:all_files",
"//go/private/tools:all_files",
] + glob(["**"]),
visibility = ["//visibility:public"],
)

Expand Down
13 changes: 13 additions & 0 deletions go/private/actions/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

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

filegroup(
name = "all_files",
testonly = True,
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)

bzl_library(
name = "archive",
srcs = ["archive.bzl"],
Expand Down
13 changes: 13 additions & 0 deletions go/private/rules/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

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

filegroup(
name = "all_files",
testonly = True,
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)

bzl_library(
name = "binary",
srcs = ["binary.bzl"],
Expand Down
13 changes: 13 additions & 0 deletions go/private/skylib/lib/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

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

filegroup(
name = "all_files",
testonly = True,
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)

bzl_library(
name = "versions",
srcs = ["versions.bzl"],
Expand Down
13 changes: 13 additions & 0 deletions go/private/tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

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

filegroup(
name = "all_files",
testonly = True,
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)

bzl_library(
name = "path",
srcs = ["path.bzl"],
Expand Down

0 comments on commit c13dab2

Please sign in to comment.