summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tools/go_generics/BUILD8
-rw-r--r--tools/go_generics/defs.bzl2
-rw-r--r--tools/go_generics/go_merge/BUILD9
-rw-r--r--tools/go_generics/go_merge/main.go (renamed from tools/go_generics/merge.go)0
4 files changed, 10 insertions, 9 deletions
diff --git a/tools/go_generics/BUILD b/tools/go_generics/BUILD
index 22c2e62c3..2d97d99dc 100644
--- a/tools/go_generics/BUILD
+++ b/tools/go_generics/BUILD
@@ -13,14 +13,6 @@ go_binary(
deps = ["//tools/go_generics/globals"],
)
-go_binary(
- name = "go_merge",
- srcs = [
- "merge.go",
- ],
- visibility = ["//visibility:public"],
-)
-
genrule(
name = "go_generics_tests",
srcs = glob(["generics_tests/**"]) + [":go_generics"],
diff --git a/tools/go_generics/defs.bzl b/tools/go_generics/defs.bzl
index 631bd11d3..999fb3426 100644
--- a/tools/go_generics/defs.bzl
+++ b/tools/go_generics/defs.bzl
@@ -48,7 +48,7 @@ go_template = rule(
"opt_types": attr.string_list(),
"consts": attr.string_list(),
"opt_consts": attr.string_list(),
- "_tool": attr.label(executable = True, cfg = "host", default = Label("//tools/go_generics:go_merge")),
+ "_tool": attr.label(executable = True, cfg = "host", default = Label("//tools/go_generics/go_merge")),
},
outputs = {
"out": "%{name}_template.go",
diff --git a/tools/go_generics/go_merge/BUILD b/tools/go_generics/go_merge/BUILD
new file mode 100644
index 000000000..a60437962
--- /dev/null
+++ b/tools/go_generics/go_merge/BUILD
@@ -0,0 +1,9 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary")
+
+package(licenses = ["notice"]) # Apache 2.0
+
+go_binary(
+ name = "go_merge",
+ srcs = ["main.go"],
+ visibility = ["//visibility:public"],
+)
diff --git a/tools/go_generics/merge.go b/tools/go_generics/go_merge/main.go
index 2f83facf8..2f83facf8 100644
--- a/tools/go_generics/merge.go
+++ b/tools/go_generics/go_merge/main.go