Skip to content

Commit

Permalink
repositories.bzl: Use valid target name for services/xds
Browse files Browse the repository at this point in the history
This fixes builds including dependencies from Maven that use
io.grpc:grpc-services or io.grpc:grpc-xds. It resolves this error:
```
no such target '@io_grpc_grpc_java//services:services': target 'services' not declared in package 'services' defined by services/BUILD.bazel and referenced by '@maven//:io_grpc_grpc_services'
```

Fixes #9419
  • Loading branch information
ejona86 committed Aug 2, 2022
1 parent e26b6ee commit db320ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repositories.bzl
Expand Up @@ -84,10 +84,10 @@ IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS = {
"io.grpc:grpc-protobuf": "@io_grpc_grpc_java//protobuf",
"io.grpc:grpc-protobuf-lite": "@io_grpc_grpc_java//protobuf-lite",
"io.grpc:grpc-rls": "@io_grpc_grpc_java//rls",
"io.grpc:grpc-services": "@io_grpc_grpc_java//services",
"io.grpc:grpc-services": "@io_grpc_grpc_java//services:services_maven",
"io.grpc:grpc-stub": "@io_grpc_grpc_java//stub",
"io.grpc:grpc-testing": "@io_grpc_grpc_java//testing",
"io.grpc:grpc-xds": "@io_grpc_grpc_java//xds",
"io.grpc:grpc-xds": "@io_grpc_grpc_java//xds:xds_maven",
}

def grpc_java_repositories():
Expand Down
1 change: 1 addition & 0 deletions xds/BUILD.bazel
Expand Up @@ -6,6 +6,7 @@ load("//:java_grpc_library.bzl", "java_grpc_library")
# Maven Central.
java_library(
name = "xds_maven",
visibility = ["//visibility:public"],
runtime_deps = [
":orca",
":xds",
Expand Down

0 comments on commit db320ce

Please sign in to comment.