aboutsummaryrefslogtreecommitdiff
path: root/go/tools/fetch_repo/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'go/tools/fetch_repo/BUILD.bazel')
-rw-r--r--go/tools/fetch_repo/BUILD.bazel23
1 files changed, 23 insertions, 0 deletions
diff --git a/go/tools/fetch_repo/BUILD.bazel b/go/tools/fetch_repo/BUILD.bazel
new file mode 100644
index 00000000..e865f654
--- /dev/null
+++ b/go/tools/fetch_repo/BUILD.bazel
@@ -0,0 +1,23 @@
+load("//go:def.bzl", "go_binary", "go_library", "go_test")
+
+go_binary(
+ name = "fetch_repo",
+ embed = [":go_default_library"],
+ visibility = ["//visibility:public"],
+)
+
+go_library(
+ name = "go_default_library",
+ srcs = ["main.go"],
+ importpath = "github.com/bazelbuild/rules_go/go/tools/fetch_repo",
+ visibility = ["//visibility:private"],
+ deps = ["@org_golang_x_tools//go/vcs:go_default_library"],
+)
+
+go_test(
+ name = "go_default_test",
+ size = "small",
+ srcs = ["fetch_repo_test.go"],
+ embed = [":go_default_library"],
+ deps = ["@org_golang_x_tools//go/vcs:go_default_library"],
+)