From 1e594dc4a6d491bc92ec3e4ae64f8739f9c4d60a Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 3 Jun 2024 18:03:48 +1000 Subject: [PATCH] Fix distribution tarballs to include directory rules. (#520) --- BUILD | 2 ++ rules/directory/BUILD | 11 +++++++++++ rules/directory/private/BUILD | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/BUILD b/BUILD index fdccf79d..6dd357c8 100644 --- a/BUILD +++ b/BUILD @@ -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"]), diff --git a/rules/directory/BUILD b/rules/directory/BUILD index c2e7de8f..bfa0598a 100644 --- a/rules/directory/BUILD +++ b/rules/directory/BUILD @@ -47,3 +47,14 @@ bzl_library( ":providers", ], ) + +# The files needed for distribution +filegroup( + name = "distribution", + srcs = [ + "BUILD", + ] + glob(["*.bzl"]), + visibility = [ + "//:__pkg__", + ], +) diff --git a/rules/directory/private/BUILD b/rules/directory/private/BUILD index 718474f2..6e991620 100644 --- a/rules/directory/private/BUILD +++ b/rules/directory/private/BUILD @@ -24,3 +24,14 @@ bzl_library( "//lib:paths", ], ) + +# The files needed for distribution +filegroup( + name = "distribution", + srcs = [ + "BUILD", + ] + glob(["*.bzl"]), + visibility = [ + "//:__pkg__", + ], +)