treewide: replace template_file rule with expand_template
Less custom rules, more good?
Change-Id: Ie6d3c0c8912ed85058cd8aadfe2e9c7689e01f79
Reviewed-on: https://review.monogon.dev/c/monogon/+/4460
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/third_party/urcu/urcu.bzl b/third_party/urcu/urcu.bzl
index 351611d..183162f 100644
--- a/third_party/urcu/urcu.bzl
+++ b/third_party/urcu/urcu.bzl
@@ -1,9 +1,10 @@
-load("@@//build/utils:template_file.bzl", "template_file")
+load("@aspect_bazel_lib//lib:expand_template.bzl", "expand_template")
load("@rules_cc//cc:defs.bzl", "cc_library")
-template_file(
- name = "config.h",
- src = ":config.h.in",
+expand_template(
+ name = "config.h_expanded",
+ template = ":config.h.in",
+ out = "config.h",
substitutions = {},
)