mirror of https://github.com/grpc/grpc.git
[bazel/protobuf.bzl] Improve py_proto_library path handling (#28040)
This change replaces the simple `basename` logic with a more general "remove prefix" logic. This allows py_proto_library to work even when the input proto_library's sources are contained in strict subdirectories of their package. (This situation is not uncommon when using remote, non-Bazel repositories that only get a single BUILD file.)reviewable/pr27867/r1^2
parent
5466a0bc43
commit
90a56a3d15
4 changed files with 65 additions and 5 deletions
@ -0,0 +1,21 @@ |
|||||||
|
// Copyright 2019 The gRPC authors. |
||||||
|
// |
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
// you may not use this file except in compliance with the License. |
||||||
|
// You may obtain a copy of the License at |
||||||
|
// |
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
// |
||||||
|
// Unless required by applicable law or agreed to in writing, software |
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
// See the License for the specific language governing permissions and |
||||||
|
// limitations under the License. |
||||||
|
|
||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package helloworld; |
||||||
|
|
||||||
|
message HelloDep { |
||||||
|
repeated int64 numbers = 1; |
||||||
|
} |
Loading…
Reference in new issue