From 87a1b0cb44173e21230d0778389c8fa16b146a2d Mon Sep 17 00:00:00 2001 From: Andrew Z Allen Date: Sat, 28 Apr 2018 17:55:45 -0600 Subject: [PATCH] Use repo relative labels in protoc-gen-swagger Previously this was breaking when imported into projects which imported the project by the name `com_github_grpc_ecosystem_grpc_gateway`. --- protoc-gen-swagger/defs.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protoc-gen-swagger/defs.bzl b/protoc-gen-swagger/defs.bzl index a7a8c858ac2..b8e54ec6bf2 100644 --- a/protoc-gen-swagger/defs.bzl +++ b/protoc-gen-swagger/defs.bzl @@ -66,7 +66,7 @@ protoc_gen_swagger = rule( allow_files = True, ), "_protoc_gen_swagger": attr.label( - default = Label("@grpc_ecosystem_grpc_gateway//protoc-gen-swagger:protoc-gen-swagger"), + default = Label("//protoc-gen-swagger:protoc-gen-swagger"), executable = True, cfg = "host", ),