From 5f0fd8cdbc79f5014486497d3da69f495b1bb6e5 Mon Sep 17 00:00:00 2001 From: Zhongming Qu Date: Sun, 6 Jan 2019 00:58:13 +0800 Subject: [PATCH] chore: rename {com_github_=>}grpc_ecosystem_grpc_gateway --- WORKSPACE | 2 +- deps.bzl | 4 ++-- github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel | 8 ++++---- github.com/grpc-ecosystem/grpc-gateway/README.md | 8 ++++---- github.com/grpc-ecosystem/grpc-gateway/deps.bzl | 4 ++-- .../grpc-gateway/example/gateway/BUILD.bazel | 2 +- .../grpc-gateway/example/gateway_grpc_compile/WORKSPACE | 2 +- .../grpc-gateway/example/gateway_grpc_library/WORKSPACE | 2 +- .../example/gateway_swagger_compile/WORKSPACE | 2 +- .../grpc-ecosystem/grpc-gateway/gateway_grpc_library.bzl | 2 +- tools/exgen/grpc_gateway.go | 4 ++-- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 5b1dfe11a..a42788109 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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() diff --git a/deps.bzl b/deps.bzl index 4f327fbb2..1bb6f36a7 100644 --- a/deps.bzl +++ b/deps.bzl @@ -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) diff --git a/github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel b/github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel index 3e2ac2d03..aec388619 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel +++ b/github.com/grpc-ecosystem/grpc-gateway/BUILD.bazel @@ -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"], ) @@ -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"], ) diff --git a/github.com/grpc-ecosystem/grpc-gateway/README.md b/github.com/grpc-ecosystem/grpc-gateway/README.md index 88be10a3e..dcd5eff37 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/README.md +++ b/github.com/grpc-ecosystem/grpc-gateway/README.md @@ -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() ``` @@ -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() ``` @@ -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() ``` @@ -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( diff --git a/github.com/grpc-ecosystem/grpc-gateway/deps.bzl b/github.com/grpc-ecosystem/grpc-gateway/deps.bzl index 29fb40adb..422033bc5 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/deps.bzl +++ b/github.com/grpc-ecosystem/grpc-gateway/deps.bzl @@ -1,7 +1,7 @@ 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") @@ -9,7 +9,7 @@ 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", diff --git a/github.com/grpc-ecosystem/grpc-gateway/example/gateway/BUILD.bazel b/github.com/grpc-ecosystem/grpc-gateway/example/gateway/BUILD.bazel index 18dad4f17..a90525c46 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/example/gateway/BUILD.bazel +++ b/github.com/grpc-ecosystem/grpc-gateway/example/gateway/BUILD.bazel @@ -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", ], diff --git a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_compile/WORKSPACE b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_compile/WORKSPACE index 9544266da..07bcd8387 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_compile/WORKSPACE +++ b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_compile/WORKSPACE @@ -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() diff --git a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_library/WORKSPACE b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_library/WORKSPACE index 74577546b..0e1db6578 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_library/WORKSPACE +++ b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_grpc_library/WORKSPACE @@ -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() diff --git a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_swagger_compile/WORKSPACE b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_swagger_compile/WORKSPACE index 975de874b..e4f558d0b 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/example/gateway_swagger_compile/WORKSPACE +++ b/github.com/grpc-ecosystem/grpc-gateway/example/gateway_swagger_compile/WORKSPACE @@ -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() diff --git a/github.com/grpc-ecosystem/grpc-gateway/gateway_grpc_library.bzl b/github.com/grpc-ecosystem/grpc-gateway/gateway_grpc_library.bzl index 736a1d95a..9f2f9911d 100644 --- a/github.com/grpc-ecosystem/grpc-gateway/gateway_grpc_library.bzl +++ b/github.com/grpc-ecosystem/grpc-gateway/gateway_grpc_library.bzl @@ -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( diff --git a/tools/exgen/grpc_gateway.go b/tools/exgen/grpc_gateway.go index 50362331d..3d9ea6cfb 100644 --- a/tools/exgen/grpc_gateway.go +++ b/tools/exgen/grpc_gateway.go @@ -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()`) @@ -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(