Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3756 by creating a new api_proto_library_internal build rule that #3764

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

mju
Copy link
Contributor

@mju mju commented Jun 29, 2018

adds the required visibility rules and delegates the rest to the generic
api_proto_library. I tested the change by doing the following without
getting errors.

./ci/run_envoy_docker.sh './ci/do_ci.sh docs'

I changed the BUILD files using the following commands.

/envoy/api$ find . -type f -name BUILD | xargs sed -i -e 's/api_proto_library(/api_proto_library_internal(/g'

envoy/api$ find . -type f -name BUILD | xargs sed -i -e 's/"api_proto_library"/"api_proto_library_internal"/g'

Signed-off-by: mickey mickeyju@google.com

@htuch htuch self-assigned this Jun 29, 2018
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks reasonable. @jmillikin-stripe

@@ -74,6 +74,17 @@ def api_go_grpc_library(name, proto, deps = []):
]
)

# This is api_proto_library plus some logic internal to //envoy/api.
def api_proto_library_internal(name, visibility = ["//visibility:private"], srcs = [], deps = [], has_services = 0, require_py = 1):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use **kwargs to pass-thru args that aren't explicitly used in the method body (it's basically like Python).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Please take another look.

…ild rule that

adds the required visibility rules and delegates the rest to the generic
api_proto_library.  I tested the change by doing the following without
getting errors.

./ci/run_envoy_docker.sh './ci/do_ci.sh docs'

I changed the BUILD files using the following commands.

/envoy/api$ find . -type f -name BUILD | xargs sed -i -e 's/api_proto_library(/api_proto_library_internal(/g'

envoy/api$ find . -type f -name BUILD | xargs sed -i -e 's/"api_proto_library"/"api_proto_library_internal"/g'

Signed-off-by: mickey <mickeyju@google.com>
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta!

@mattklein123 mattklein123 merged commit 4b871c0 into envoyproxy:master Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants