load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")

proto_library(
    name = "test_status_proto",
    srcs = ["test_status.proto"],
    visibility = ["//visibility:public"],
)

go_proto_library(
    name = "test_status_go_proto",
    importpath = "github.com/GoogleCloudPlatform/testgrid/pb/test_status",
    proto = ":test_status_proto",
    visibility = ["//visibility:public"],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)

go_library(
    name = "go_default_library",
    embed = [":test_status_go_proto"],
    importpath = "github.com/GoogleCloudPlatform/testgrid/pb/test_status",
    visibility = ["//visibility:public"],
)
