Fix distribution tarballs to include directory rules. (#520)

This commit is contained in:
Matt 2024-06-03 18:03:48 +10:00 committed by GitHub
parent ab604c1cd8
commit 1e594dc4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

2
BUILD
View File

@ -86,6 +86,8 @@ filegroup(
"WORKSPACE.bzlmod", "WORKSPACE.bzlmod",
"//lib:distribution", "//lib:distribution",
"//rules:distribution", "//rules:distribution",
"//rules/directory:distribution",
"//rules/directory/private:distribution",
"//rules/private:distribution", "//rules/private:distribution",
"//toolchains/unittest:distribution", "//toolchains/unittest:distribution",
] + glob(["*.bzl"]), ] + glob(["*.bzl"]),

View File

@ -47,3 +47,14 @@ bzl_library(
":providers", ":providers",
], ],
) )
# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)

View File

@ -24,3 +24,14 @@ bzl_library(
"//lib:paths", "//lib:paths",
], ],
) )
# The files needed for distribution
filegroup(
name = "distribution",
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = [
"//:__pkg__",
],
)