File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,10 @@ license(
2727 license_text = "LICENSE" ,
2828)
2929
30- exports_files (
31- ["WORKSPACE" ],
32- )
30+ exports_files ([
31+ "MODULE.bazel" ,
32+ "WORKSPACE" ,
33+ ])
3334
3435exports_files (
3536 glob ([
@@ -44,7 +45,6 @@ filegroup(
4445 ]) + [
4546 "BUILD" ,
4647 "LICENSE" ,
47- "MODULE.bazel" ,
4848 ],
4949 visibility = ["//distro:__pkg__" ],
5050)
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ register_toolchains(
2525 dev_dependency = True ,
2626)
2727
28+ ### INTERNAL ONLY - lines after this are not included in the release packaging.
29+
2830# Find the system Git if one is available.
2931find_git = use_extension ("//toolchains/git:git_configure.bzl" , "experimental_find_system_git_extension" , dev_dependency = True )
3032use_repo (find_git , "rules_pkg_git" )
Original file line number Diff line number Diff line change 3232pkg_tar (
3333 name = "rules_pkg-%s" % version ,
3434 srcs = [
35+ ":small_module" ,
3536 ":small_workspace" ,
3637 "//:standard_package" ,
3738 "//pkg:standard_package" ,
@@ -52,6 +53,13 @@ pkg_tar(
5253 strip_prefix = "." ,
5354)
5455
56+ genrule (
57+ name = "small_module" ,
58+ srcs = ["//:MODULE.bazel" ],
59+ outs = ["MODULE.bazel" ],
60+ cmd = "sed -e '/### INTERNAL ONLY/,$$d' $(location //:MODULE.bazel) >$@" ,
61+ )
62+
5563genrule (
5664 name = "small_workspace" ,
5765 srcs = ["//:WORKSPACE" ],
You can’t perform that action at this time.
0 commit comments