github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/protos/BUILD.want (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library")
     2  load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
     3  load("@rules_proto//proto:defs.bzl", "proto_library")
     4  
     5  proto_library(
     6      name = "protos_proto",
     7      srcs = ["foo.proto"],
     8      _gazelle_imports = [
     9          "google/protobuf/any.proto",
    10          "protos/sub/sub.proto",
    11      ],
    12      visibility = ["//visibility:public"],
    13  )
    14  
    15  go_proto_library(
    16      name = "protos_go_proto",
    17      _gazelle_imports = [
    18          "google/protobuf/any.proto",
    19          "protos/sub/sub.proto",
    20      ],
    21      importpath = "example.com/repo/protos",
    22      proto = ":protos_proto",
    23      visibility = ["//visibility:public"],
    24  )
    25  
    26  go_library(
    27      name = "protos",
    28      srcs = ["extra.go"],
    29      _gazelle_imports = [],
    30      embed = [":protos_go_proto"],
    31      importpath = "example.com/repo/protos",
    32      visibility = ["//visibility:public"],
    33  )