aboutsummaryrefslogtreecommitdiff
path: root/gazelle/manifest/hasher/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'gazelle/manifest/hasher/BUILD.bazel')
-rw-r--r--gazelle/manifest/hasher/BUILD.bazel20
1 files changed, 20 insertions, 0 deletions
diff --git a/gazelle/manifest/hasher/BUILD.bazel b/gazelle/manifest/hasher/BUILD.bazel
new file mode 100644
index 0000000..2e7b125
--- /dev/null
+++ b/gazelle/manifest/hasher/BUILD.bazel
@@ -0,0 +1,20 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+
+go_library(
+ name = "hasher_lib",
+ srcs = ["main.go"],
+ importpath = "github.com/bazelbuild/rules_python/gazelle/manifest/hasher",
+ visibility = ["//visibility:private"],
+)
+
+go_binary(
+ name = "hasher",
+ embed = [":hasher_lib"],
+ visibility = ["//visibility:public"],
+)
+
+filegroup(
+ name = "distribution",
+ srcs = glob(["**"]),
+ visibility = ["//manifest:__pkg__"],
+)