-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
envoy/api/bazel/api_build_system.bzl requires //docs #3756
Comments
@htuch @kyessenov @lizan @jmillikin-stripe thoughts here? |
We can modify |
This looks like fallout from merging
My recommendation is to remove the |
@jmillikin-stripe the visibility is for I do agree broadly that we should not have |
…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>
Title: envoy/api/bazel/api_build_system.bzl requires //docs
Description:
When building an Envoy filter, we needed to use api_proto_library, which tries to grant //docs visibility. See
envoy/api/bazel/api_build_system.bzl
Line 89 in 2447cb7
My guess is that the shell scripts under https://github.com/envoyproxy/envoy/tree/2447cb73ef8f103770dab6b1cb154a3a8f02630e/docs run some bazel commands that need that visibility.
Suggestion I got on how to fix this issue:
"""Get rid of this defaulting behavior in api_proto_library (since it is used in many places external to the envoy_api repo). We could add a wrapper for the API repo that does the defaulting only internally."""
Repro steps:
To reproduce this, try to build https://github.com/envoyproxy/envoy-filter-example/tree/master/http-filter-example as a independent repo.
The text was updated successfully, but these errors were encountered: