From 992c6453f3552702c20aa2972413884cf993798c Mon Sep 17 00:00:00 2001
From: Philipp Stephani
Date: Tue, 7 Jan 2025 17:59:38 +0100
Subject: [PATCH] Move BUILD templates into the package where they are used
---
MODULE.bazel.lock | 2 +-
examples/ext/MODULE.bazel.lock | 2 +-
emacs.BUILD.template => private/emacs.BUILD.template | 0
private/extensions.bzl | 4 ++--
junit_xsd.BUILD.template => private/junit_xsd.BUILD.template | 0
local.BUILD.template => private/local.BUILD.template | 0
private/repositories.bzl | 2 +-
7 files changed, 5 insertions(+), 5 deletions(-)
rename emacs.BUILD.template => private/emacs.BUILD.template (100%)
rename junit_xsd.BUILD.template => private/junit_xsd.BUILD.template (100%)
rename local.BUILD.template => private/local.BUILD.template (100%)
diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock
index bb84c14d..9051813c 100644
--- a/MODULE.bazel.lock
+++ b/MODULE.bazel.lock
@@ -202,7 +202,7 @@
},
"//private:extensions.bzl%deps": {
"general": {
- "bzlTransitiveDigest": "s7C+I+ggdVRTiRUdD8PHlgPijP4s4wHG2n6iNdKA5iw=",
+ "bzlTransitiveDigest": "6kJorqyJmv2Xm1J9lpZEztijOmGw9HIwPkussFO9hGI=",
"usagesDigest": "ARAKUMjn2lih+tNys5k8lsfdKUhUhcOsMxt0x+Bab/U=",
"recordedFileInputs": {},
"recordedDirentsInputs": {},
diff --git a/examples/ext/MODULE.bazel.lock b/examples/ext/MODULE.bazel.lock
index c6dc1091..b9528329 100644
--- a/examples/ext/MODULE.bazel.lock
+++ b/examples/ext/MODULE.bazel.lock
@@ -211,7 +211,7 @@
},
"@@phst_rules_elisp+//private:extensions.bzl%deps": {
"general": {
- "bzlTransitiveDigest": "s7C+I+ggdVRTiRUdD8PHlgPijP4s4wHG2n6iNdKA5iw=",
+ "bzlTransitiveDigest": "6kJorqyJmv2Xm1J9lpZEztijOmGw9HIwPkussFO9hGI=",
"usagesDigest": "pqVdmfUwoAmog+tBeODqQxV5QWTYPgTDSt5nLTCeR6Q=",
"recordedFileInputs": {},
"recordedDirentsInputs": {},
diff --git a/emacs.BUILD.template b/private/emacs.BUILD.template
similarity index 100%
rename from emacs.BUILD.template
rename to private/emacs.BUILD.template
diff --git a/private/extensions.bzl b/private/extensions.bzl
index a6fde236..a202769c 100644
--- a/private/extensions.bzl
+++ b/private/extensions.bzl
@@ -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__"))),
@@ -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__"))),
diff --git a/junit_xsd.BUILD.template b/private/junit_xsd.BUILD.template
similarity index 100%
rename from junit_xsd.BUILD.template
rename to private/junit_xsd.BUILD.template
diff --git a/local.BUILD.template b/private/local.BUILD.template
similarity index 100%
rename from local.BUILD.template
rename to private/local.BUILD.template
diff --git a/private/repositories.bzl b/private/repositories.bzl
index 73d84b0c..613aff65 100644
--- a/private/repositories.bzl
+++ b/private/repositories.bzl
@@ -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__"))),
},