Skip to content

Commit

Permalink
chore: rename {com_github_=>}grpc_ecosystem_grpc_gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
qzmfranklin committed Jan 5, 2019
1 parent 78df709 commit 5f0fd8c
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ load("//github.com/grpc-ecosystem/grpc-gateway:deps.bzl", "gateway_grpc_library"

gateway_grpc_library()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()

Expand Down
4 changes: 2 additions & 2 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def com_github_yugui_rules_ruby(**kwargs):
sha256 = get_sha256(name, "7991ded3b902aba4c13fa7bdd67132edfcc279930b356737c1a3d3b2686d08c8", kwargs)
github_archive(name, "yugui", "rules_ruby", ref, sha256)

def com_github_grpc_ecosystem_grpc_gateway(**kwargs):
name = "com_github_grpc_ecosystem_grpc_gateway"
def grpc_ecosystem_grpc_gateway(**kwargs):
name = "grpc_ecosystem_grpc_gateway"
ref = get_ref(name, "8aa3d3f00fbaea619d864e688cd045497aa30fe8", kwargs) # Oct 2, 2018,
sha256 = get_sha256(name, "e21e3a3ac5e2be3869474f1c703db5d4f72e459e07084e9228eaaf2484e0dd48", kwargs)
github_archive(name, "grpc-ecosystem", "grpc-gateway", ref, sha256)
Expand Down
8 changes: 4 additions & 4 deletions github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ proto_plugin(
".pb.gw.go",
],
# Show options:
# $ bazel run @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway -- --help
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway -- --help
# options = [
# "logtostderr=true",
# ],
tool = "@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway",
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway",
visibility = ["//visibility:public"],
)

Expand All @@ -20,10 +20,10 @@ proto_plugin(
".swagger.json",
],
# Show options:
# $ bazel run @com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-swagger -- --help
# $ bazel run @grpc_ecosystem_grpc_gateway//protoc-gen-grpc-swagger -- --help
# options = [
# "json_names_for_fields",
# ],
tool = "@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-swagger",
tool = "@grpc_ecosystem_grpc_gateway//protoc-gen-swagger",
visibility = ["//visibility:public"],
)
8 changes: 4 additions & 4 deletions github.com/grpc-ecosystem/grpc-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
```
Expand Down Expand Up @@ -114,7 +114,7 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
```
Expand Down Expand Up @@ -193,7 +193,7 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
```
Expand Down Expand Up @@ -227,7 +227,7 @@ def gateway_grpc_library(**kwargs):
if not compilers:
compilers = [
"@io_bazel_rules_go//proto:go_grpc",
"@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
"@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
]

go_proto_library(
Expand Down
4 changes: 2 additions & 2 deletions github.com/grpc-ecosystem/grpc-gateway/deps.bzl
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
load(
"//:deps.bzl",
"bazel_gazelle",
"com_github_grpc_ecosystem_grpc_gateway",
"grpc_ecosystem_grpc_gateway",
"io_bazel_rules_go",
)
load("@bazel_gazelle//:deps.bzl", "go_repository")

def gateway_grpc_compile(**kwargs):
io_bazel_rules_go(**kwargs)
bazel_gazelle(**kwargs)
com_github_grpc_ecosystem_grpc_gateway(**kwargs)
grpc_ecosystem_grpc_gateway(**kwargs)

go_repository(
name = "org_golang_google_genproto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ go_library(
deps = [
"//github.com/grpc-ecosystem/grpc-gateway/example/api:go_default_library",
"@com_github_golang_glog//:go_default_library",
"@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library",
"@grpc_ecosystem_grpc_gateway//runtime:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//connectivity:go_default_library",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()

load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")

grpc_gateway_repositories()
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def gateway_grpc_library(**kwargs):
if not compilers:
compilers = [
"@io_bazel_rules_go//proto:go_grpc",
"@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
"@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
]

go_proto_library(
Expand Down
4 changes: 2 additions & 2 deletions tools/exgen/grpc_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
load("@com_github_grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
load("@grpc_ecosystem_grpc_gateway//:repositories.bzl", grpc_gateway_repositories = "repositories")
grpc_gateway_repositories()`)

Expand All @@ -38,7 +38,7 @@ def {{ .Rule.Name }}(**kwargs):
if not compilers:
compilers = [
"@io_bazel_rules_go//proto:go_grpc",
"@com_github_grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
"@grpc_ecosystem_grpc_gateway//protoc-gen-grpc-gateway:go_gen_grpc_gateway",
]
go_proto_library(
Expand Down

0 comments on commit 5f0fd8c

Please sign in to comment.