mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 09:34:05 -08:00
81c4248081
The goal is to remove almost all references to the golang.org/x/net/context package. github.com/gogo/protobuf => v1.2.1 google.golang.org/grpc => v1.19.1 github.com/grpc-ecosystem/grpc-gateway => v1.18.5 It also replaces github.com/cockroachdb/cmux by github.com/soheilhy/cmux because of [1] which fixes #3909 incidentally. [1] https://github.com/grpc/grpc-go/issues/2636 Signed-off-by: Simon Pasquier <spasquie@redhat.com>
81 lines
2.9 KiB
Python
81 lines
2.9 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"context.go",
|
|
"convert.go",
|
|
"doc.go",
|
|
"errors.go",
|
|
"fieldmask.go",
|
|
"handler.go",
|
|
"marshal_json.go",
|
|
"marshal_jsonpb.go",
|
|
"marshal_proto.go",
|
|
"marshaler.go",
|
|
"marshaler_registry.go",
|
|
"mux.go",
|
|
"pattern.go",
|
|
"proto2_convert.go",
|
|
"proto_errors.go",
|
|
"query.go",
|
|
],
|
|
importpath = "github.com/grpc-ecosystem/grpc-gateway/runtime",
|
|
deps = [
|
|
"//internal:go_default_library",
|
|
"//utilities:go_default_library",
|
|
"@com_github_golang_protobuf//jsonpb:go_default_library_gen",
|
|
"@com_github_golang_protobuf//proto:go_default_library",
|
|
"@com_github_golang_protobuf//protoc-gen-go/generator:go_default_library_gen",
|
|
"@io_bazel_rules_go//proto/wkt:any_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:field_mask_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:wrappers_go_proto",
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
"@org_golang_google_grpc//grpclog:go_default_library",
|
|
"@org_golang_google_grpc//metadata:go_default_library",
|
|
"@org_golang_google_grpc//status:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
size = "small",
|
|
srcs = [
|
|
"context_test.go",
|
|
"errors_test.go",
|
|
"fieldmask_test.go",
|
|
"handler_test.go",
|
|
"marshal_json_test.go",
|
|
"marshal_jsonpb_test.go",
|
|
"marshal_proto_test.go",
|
|
"marshaler_registry_test.go",
|
|
"mux_test.go",
|
|
"pattern_test.go",
|
|
"query_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//examples/proto/examplepb:go_default_library",
|
|
"//internal:go_default_library",
|
|
"//utilities:go_default_library",
|
|
"@com_github_golang_protobuf//jsonpb:go_default_library_gen",
|
|
"@com_github_golang_protobuf//proto:go_default_library",
|
|
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
|
|
"@go_googleapis//google/rpc:errdetails_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:empty_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:field_mask_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
|
|
"@io_bazel_rules_go//proto/wkt:wrappers_go_proto",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//codes:go_default_library",
|
|
"@org_golang_google_grpc//metadata:go_default_library",
|
|
"@org_golang_google_grpc//status:go_default_library",
|
|
],
|
|
)
|