Skip to content

Commit

Permalink
Merge pull request #16 from stackb/package/v1alpha2
Browse files Browse the repository at this point in the history
Initial package/v1alpha2
  • Loading branch information
pcj authored Jun 29, 2023
2 parents 03f972b + 92cfbab commit c75e47d
Show file tree
Hide file tree
Showing 5 changed files with 1,291 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ update:
$(BAZEL) run //build/stack/starlark/info/v1beta1:v1beta1_go_compiled_sources.update
$(BAZEL) run //build/stack/protobuf/compiler/v1alpha1:v1alpha1_go_compiled_sources.update
$(BAZEL) run //build/stack/protobuf/package/v1alpha1:v1alpha1_go_compiled_sources.update
$(BAZEL) run //build/stack/protobuf/package/v1alpha2:v1alpha2_go_compiled_sources.update
52 changes: 52 additions & 0 deletions build/stack/protobuf/package/v1alpha2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@build_stack_rules_proto//rules:proto_compiled_sources.bzl", "proto_compiled_sources")

proto_library(
name = "v1alpha2_proto",
srcs = ["package.proto"],
visibility = ["//visibility:public"],
deps = [
"@googleapis//google/longrunning:operations_proto",
"@protoapis//google/protobuf:descriptor_proto",
"@protoapis//google/protobuf:timestamp_proto",
],
)

go_library(
name = "v1alpha2",
srcs = [
"package.pb.go",
"package_grpc.pb.go",
],
importpath = "github.com/stackb/apis/build/stack/protobuf/package/v1alpha2",
visibility = ["//visibility:public"],
deps = [
"@com_google_cloud_go_longrunning//autogen/longrunningpb",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
"@org_golang_google_protobuf//reflect/protoreflect",
"@org_golang_google_protobuf//runtime/protoimpl",
"@org_golang_google_protobuf//types/descriptorpb",
"@org_golang_google_protobuf//types/known/timestamppb",
],
)

proto_compiled_sources(
name = "v1alpha2_go_compiled_sources",
srcs = [
"package.pb.go",
"package_grpc.pb.go",
],
output_mappings = [
"package.pb.go=github.com/stackb/apis/build/stack/protobuf/package/v1alpha2/package.pb.go",
"package_grpc.pb.go=github.com/stackb/apis/build/stack/protobuf/package/v1alpha2/package_grpc.pb.go",
],
plugins = [
"@build_stack_rules_proto//plugin/golang/protobuf:protoc-gen-go",
"@build_stack_rules_proto//plugin/grpc/grpc-go:protoc-gen-go-grpc",
],
proto = "v1alpha2_proto",
visibility = ["//visibility:public"],
)
Loading

0 comments on commit c75e47d

Please sign in to comment.