Skip to content

Commit

Permalink
Move BUILD templates into the package where they are used
Browse files Browse the repository at this point in the history
  • Loading branch information
phst committed Jan 7, 2025
1 parent 10bc323 commit 992c645
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/ext/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
4 changes: 2 additions & 2 deletions private/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _emacs_repository_impl(ctx):
)
ctx.template(
"BUILD.bazel",
Label("//:emacs.BUILD.template"),
Label("//private:emacs.BUILD.template"),
{
'"[defs_bzl]"': repr(str(Label("//emacs:defs.bzl"))),
'"[emacs_pkg]"': repr(str(Label("//emacs:__pkg__"))),
Expand Down Expand Up @@ -68,7 +68,7 @@ def _local_emacs_repo_impl(ctx):
ctx.symlink(emacs, "source.exe")
ctx.template(
"BUILD.bazel",
Label("//:local.BUILD.template"),
Label("//private:local.BUILD.template"),
{
'"[native_binary.bzl]"': repr(str(Label("@bazel_skylib//rules:native_binary.bzl"))),
'"[elisp_pkg]"': repr(str(Label("//elisp:__pkg__"))),
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _junit_xsd_impl(ctx):
)
ctx.template(
"BUILD.bazel",
Label("//:junit_xsd.BUILD.template"),
Label("//private:junit_xsd.BUILD.template"),
{
'"[tests_pkg]"': repr(str(Label("//tests:__pkg__"))),
},
Expand Down

0 comments on commit 992c645

Please sign in to comment.