Skip to content

Commit ef0d8c4

Browse files
utilities: move package to public API
This was made internal, but it's actually used by the generated files.
1 parent cc95ab4 commit ef0d8c4

File tree

12 files changed

+10
-10
lines changed

12 files changed

+10
-10
lines changed

examples/internal/helloworld/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ go_library(
2828
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/helloworld",
2929
visibility = ["//visibility:public"],
3030
deps = [
31-
"//internal/utilities:go_default_library",
3231
"//runtime:go_default_library",
32+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
3333
"@org_golang_google_grpc//:go_default_library",
3434
"@org_golang_google_grpc//codes:go_default_library",
3535
"@org_golang_google_grpc//grpclog:go_default_library",

examples/internal/proto/examplepb/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ go_library(
7979
embed = [":examplepb_go_proto"],
8080
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/examplepb",
8181
deps = [
82-
"//internal/utilities:go_default_library",
8382
"//runtime:go_default_library",
83+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
8484
"@org_golang_google_grpc//:go_default_library",
8585
"@org_golang_google_grpc//codes:go_default_library",
8686
"@org_golang_google_grpc//grpclog:go_default_library",

examples/internal/proto/standalone/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ go_library(
77
visibility = ["//examples:__subpackages__"],
88
deps = [
99
"//examples/internal/proto/examplepb:go_default_library",
10-
"//internal/utilities:go_default_library",
1110
"//runtime:go_default_library",
11+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
1212
"@org_golang_google_grpc//:go_default_library",
1313
"@org_golang_google_grpc//codes:go_default_library",
1414
"@org_golang_google_grpc//grpclog:go_default_library",

internal/httprule/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ go_library(
1111
],
1212
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/internal/httprule",
1313
deps = [
14-
"//internal/utilities:go_default_library",
1514
"@com_github_golang_glog//:go_default_library",
15+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
1616
],
1717
)
1818

@@ -26,7 +26,7 @@ go_test(
2626
],
2727
embed = [":go_default_library"],
2828
deps = [
29-
"//internal/utilities:go_default_library",
3029
"@com_github_golang_glog//:go_default_library",
30+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
3131
],
3232
)

protoc-gen-grpc-gateway/internal/gengateway/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ go_library(
1414
"//internal/casing:go_default_library",
1515
"//internal/descriptor:go_default_library",
1616
"//internal/generator:go_default_library",
17-
"//internal/utilities:go_default_library",
1817
"@com_github_golang_glog//:go_default_library",
18+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
1919
"@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",
2020
"@org_golang_google_protobuf//proto:go_default_library",
2121
],

runtime/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ go_library(
2424
],
2525
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/runtime",
2626
deps = [
27-
"//internal/utilities:go_default_library",
2827
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
28+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
2929
"@go_googleapis//google/api:httpbody_go_proto",
3030
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
3131
"@io_bazel_rules_go//proto/wkt:field_mask_go_proto",
@@ -62,11 +62,11 @@ go_test(
6262
],
6363
embed = [":go_default_library"],
6464
deps = [
65-
"//internal/utilities:go_default_library",
6665
"//runtime/internal/examplepb:go_default_library",
6766
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
6867
"@com_github_google_go_cmp//cmp:go_default_library",
6968
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
69+
"@com_github_grpc_ecosystem_grpc_gateway_v2//internal/utilities:go_default_library",
7070
"@go_googleapis//google/api:httpbody_go_proto",
7171
"@go_googleapis//google/rpc:errdetails_go_proto",
7272
"@go_googleapis//google/rpc:status_go_proto",

internal/utilities/BUILD.bazel renamed to utilities/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ go_library(
1010
"readerfactory.go",
1111
"trie.go",
1212
],
13-
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/internal/utilities",
13+
importpath = "github.com/grpc-ecosystem/grpc-gateway/v2/utilities",
1414
)
1515

1616
go_test(
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/utilities/trie_test.go renamed to utilities/trie_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/grpc-ecosystem/grpc-gateway/v2/internal/utilities"
7+
"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
88
)
99

1010
func TestMaxCommonPrefix(t *testing.T) {

0 commit comments

Comments
 (0)