Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ license(
license_text = "LICENSE",
)

exports_files(
["WORKSPACE"],
)
exports_files([
"MODULE.bazel",
"WORKSPACE",
])

exports_files(
glob([
Expand All @@ -44,7 +45,6 @@ filegroup(
]) + [
"BUILD",
"LICENSE",
"MODULE.bazel",
],
visibility = ["//distro:__pkg__"],
)
2 changes: 2 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ register_toolchains(
dev_dependency = True,
)

### INTERNAL ONLY - lines after this are not included in the release packaging.

# Find the system Git if one is available.
find_git = use_extension("//toolchains/git:git_configure.bzl", "experimental_find_system_git_extension", dev_dependency = True)
use_repo(find_git, "rules_pkg_git")
Expand Down
8 changes: 8 additions & 0 deletions distro/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ alias(
pkg_tar(
name = "rules_pkg-%s" % version,
srcs = [
":small_module",
":small_workspace",
"//:standard_package",
"//pkg:standard_package",
Expand All @@ -52,6 +53,13 @@ pkg_tar(
strip_prefix = ".",
)

genrule(
name = "small_module",
srcs = ["//:MODULE.bazel"],
outs = ["MODULE.bazel"],
cmd = "sed -e '/### INTERNAL ONLY/,$$d' $(location //:MODULE.bazel) >$@",
)

genrule(
name = "small_workspace",
srcs = ["//:WORKSPACE"],
Expand Down