aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/examples/proto/gostyle/BUILD.bazel
blob: 1b7d5ff363a061b73bbca48c048129e4e5163ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

genrule(
    name = "copy",
    srcs = ["gostyle.proto"],
    outs = ["gostyle.gen.proto"],
    cmd = "sed -e 's/ano.proto/any.proto/' $< > $@",
)

proto_library(
    name = "gostyle_proto",
    srcs = [":copy"],
    visibility = ["//visibility:public"],
    deps = [
        "@com_google_protobuf//:any_proto",
    ],
)

go_proto_library(
    name = "gostyle_go_proto",
    importpath = "github.com/bazelbuild/rules_go/examples/proto/gostyle",
    proto = ":gostyle_proto",
    visibility = ["//visibility:public"],
)