blob: 87310eddcd3aa8edaacabf3d4d3f7e1640b15f35 [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",
10 "PACKAGE_DIRECTORY_MATCH", # TODO: evaluate correctness
11 ],
12 protos = [":spec_proto"],
13 use_rules = [
14 "DEFAULT",
15 "COMMENTS",
16 ],
17)
Lorenz Brun30167f52021-03-17 17:49:01 +010018
19proto_library(
20 name = "spec_proto",
21 srcs = ["spec.proto"],
22 visibility = ["//visibility:public"],
23)
24
25go_proto_library(
26 name = "spec_go_proto",
27 importpath = "source.monogon.dev/build/static_binary_tarball/spec",
28 proto = ":spec_proto",
29 visibility = ["//visibility:public"],
30)
31
32go_library(
Lorenz Brund13c1c62022-03-30 19:58:58 +020033 name = "spec",
Lorenz Brun30167f52021-03-17 17:49:01 +010034 embed = [":spec_go_proto"],
35 importpath = "source.monogon.dev/build/static_binary_tarball/spec",
36 visibility = ["//visibility:public"],
37)