blob: f926b7adff75ac9e36bf31bd76ff46a1a2ee9108 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_proto_grpc_buf//:defs.bzl", "buf_proto_lint_test")
buf_proto_lint_test(
name = "spec_proto_lint_test",
except_rules = [
"PACKAGE_VERSION_SUFFIX",
"PACKAGE_DIRECTORY_MATCH", # TODO: evaluate correctness
],
protos = [":spec_proto"],
use_rules = [
"DEFAULT",
"COMMENTS",
],
)
proto_library(
name = "spec_proto",
srcs = ["manifest.proto"],
visibility = ["//visibility:public"],
)
go_proto_library(
name = "spec_go_proto",
importpath = "source.monogon.dev/metropolis/test/localregistry/spec",
proto = ":spec_proto",
visibility = ["//visibility:public"],
)
go_library(
name = "spec",
embed = [":spec_go_proto"],
importpath = "source.monogon.dev/metropolis/test/localregistry/spec",
visibility = ["//visibility:public"],
)