aboutsummaryrefslogtreecommitdiff
path: root/test/testdata/repo_rules_test/input.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/repo_rules_test/input.bzl')
-rw-r--r--test/testdata/repo_rules_test/input.bzl14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/testdata/repo_rules_test/input.bzl b/test/testdata/repo_rules_test/input.bzl
new file mode 100644
index 0000000..023d92d
--- /dev/null
+++ b/test/testdata/repo_rules_test/input.bzl
@@ -0,0 +1,14 @@
+# buildifier: disable=module-docstring
+def _repo_rule_impl(ctx):
+ ctx.file("BUILD", "")
+
+my_repo = repository_rule(
+ implementation = _repo_rule_impl,
+ doc = "Minimal example of a repository rule.",
+ attrs = {
+ "useless": attr.string(
+ doc = "This argument will be ingored. You don't have to specify it, but you may.",
+ default = "ignoreme",
+ ),
+ },
+)