Skip to content

Commit

Permalink
Fix distribution tarballs to include directory rules. (bazelbuild#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
matts1 authored Jun 3, 2024
1 parent ab604c1 commit 1e594dc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ filegroup(
"WORKSPACE.bzlmod",
"//lib:distribution",
"//rules:distribution",
"//rules/directory:distribution",
"//rules/directory/private:distribution",
"//rules/private:distribution",
"//toolchains/unittest:distribution",
] + glob(["*.bzl"]),
Expand Down
11 changes: 11 additions & 0 deletions rules/directory/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ bzl_library(
":providers",
],
)

# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)
11 changes: 11 additions & 0 deletions rules/directory/private/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ bzl_library(
"//lib:paths",
],
)

# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)

0 comments on commit 1e594dc

Please sign in to comment.