Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update run_clang_tidy.sh to support bazel targets with '@repository' …
…prefixes (#15604) Support running `run_clang_tidy.sh` when Envoy is a sub-workspace within a project (such as used when developing custom filters and nesting Envoy as a git-submodule). This can be done by setting the compilation DB targets as an environment variable: ```bash COMP_DB_TARGETS="@envoy//source/... @envoy//test/... @envoy//tools/..." ``` __Additional Description:__ In order to build from the SRCDIR (not ENVOY_SRCDIR), such as with the envoy-filter-example, need to be able to specify a repository on the targets built by `gen_compilation_database.py`. Simplest way to enable this is to allow for specifying the comp-db targets. __Risk Level:__ Low. Default maintains current behavior __Testing:__ Tested manually in docker container with setup similar to envoy-filter-example repo via: ```bash SRCDIR='/src' COMP_DB_TARGETS="@envoy//source/... @envoy//test/... @envoy//tools/... //filters/..." bash -ex ./envoy/ci/do_ci.sh 'bazel.clang_tidy' '//filters/...' ``` Signed-off-by: John Murray <[email protected]>
- Loading branch information