blob: e3b4bc818770e2d36e7562c1c01a61a32f4a1b09 [file] [log] [blame]
Lorenz Brun30167f52021-03-17 17:49:01 +01001load("@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 Brun30167f52021-03-17 17:49:01 +010017
18proto_library(
19 name = "spec_proto",
20 srcs = ["spec.proto"],
21 visibility = ["//visibility:public"],
22)
23
24go_proto_library(
25 name = "spec_go_proto",
26 importpath = "source.monogon.dev/build/static_binary_tarball/spec",
27 proto = ":spec_proto",
28 visibility = ["//visibility:public"],
29)
30
31go_library(
Lorenz Brund13c1c62022-03-30 19:58:58 +020032 name = "spec",
Lorenz Brun30167f52021-03-17 17:49:01 +010033 embed = [":spec_go_proto"],
34 importpath = "source.monogon.dev/build/static_binary_tarball/spec",
35 visibility = ["//visibility:public"],
36)