aboutsummaryrefslogtreecommitdiffhomepage
path: root/base_workspace/examples/go/lib1/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'base_workspace/examples/go/lib1/BUILD')
-rw-r--r--base_workspace/examples/go/lib1/BUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/base_workspace/examples/go/lib1/BUILD b/base_workspace/examples/go/lib1/BUILD
new file mode 100644
index 0000000000..fc26f25bc4
--- /dev/null
+++ b/base_workspace/examples/go/lib1/BUILD
@@ -0,0 +1,24 @@
+package(default_visibility = ["//visibility:public"])
+
+load("tools/build_rules/go_rules", "go_library", "go_binary", "go_test")
+
+go_library(
+ name = "lib1",
+ srcs = glob(
+ ["*.go"],
+ exclude = ["*_test.go"],
+ ),
+)
+
+go_test(
+ name = "lib1_test",
+ srcs = [
+ "lib1.go",
+ "lib1_test.go",
+ ],
+)
+
+go_test(
+ name = "fail_test",
+ srcs = ["fail_test.go"],
+)