diff options
Diffstat (limited to 'go/tools/bazel/BUILD.bazel')
-rw-r--r-- | go/tools/bazel/BUILD.bazel | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/go/tools/bazel/BUILD.bazel b/go/tools/bazel/BUILD.bazel new file mode 100644 index 00000000..674da86f --- /dev/null +++ b/go/tools/bazel/BUILD.bazel @@ -0,0 +1,34 @@ +load("//go:def.bzl", "go_library", "go_test") + +go_library( + name = "bazel", + srcs = [ + "bazel.go", + "runfiles.go", + ], + importpath = "github.com/bazelbuild/rules_go/go/tools/bazel", + visibility = ["//visibility:public"], +) + +go_test( + name = "bazel_test", + size = "small", + srcs = ["bazel_test.go"], + data = ["empty.txt"], + embed = [":bazel"], +) + +# Runfiles functionality in this package is tested by //tests/core/runfiles. + +filegroup( + name = "all_files", + testonly = True, + srcs = glob(["**"]), + visibility = ["//visibility:public"], +) + +alias( + name = "go_default_library", + actual = ":bazel", + visibility = ["//visibility:public"], +) |