blob: 0d059e33e46740d2a1a3cff76420902a0df60d46 [file] [log] [blame]
Lorenz Brun901c7322023-07-13 20:10:37 +02001load("@io_bazel_rules_go//go:def.bzl", "go_library")
2load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
Tim Windelschmidt156248b2025-01-10 00:27:45 +01003load("@rules_proto//proto:defs.bzl", "proto_library")
Tim Windelschmidt3b624072025-01-11 07:16:35 +01004load("@rules_proto_grpc_buf//:defs.bzl", "buf_proto_lint_test")
5
6buf_proto_lint_test(
7 name = "spec_proto_lint_test",
8 except_rules = [
9 "PACKAGE_VERSION_SUFFIX",
Tim Windelschmidt3b624072025-01-11 07:16:35 +010010 ],
11 protos = [":spec_proto"],
12 use_rules = [
13 "DEFAULT",
14 "COMMENTS",
15 ],
16)
Lorenz Brun901c7322023-07-13 20:10:37 +020017
18proto_library(
19 name = "spec_proto",
20 srcs = ["manifest.proto"],
21 visibility = ["//visibility:public"],
22)
23
24go_proto_library(
25 name = "spec_go_proto",
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020026 importpath = "source.monogon.dev/metropolis/test/localregistry/spec",
Lorenz Brun901c7322023-07-13 20:10:37 +020027 proto = ":spec_proto",
28 visibility = ["//visibility:public"],
29)
30
31go_library(
32 name = "spec",
33 embed = [":spec_go_proto"],
Tim Windelschmidt9f21f532024-05-07 15:14:20 +020034 importpath = "source.monogon.dev/metropolis/test/localregistry/spec",
Lorenz Brun901c7322023-07-13 20:10:37 +020035 visibility = ["//visibility:public"],
36)