[bazel][shac] Expand allowed vendor visibility Refactor `ALLOWED_VENDOR_TARGET_VISIBILITY_LABELS` and `ALLOWED_VENDOR_LOAD_VISIBILITY_LABELS` in `visibility_utils.py` to generate their suffix variations from a single sorted `_VENDOR_PACKAGES_ALLOWED_IN_FUCHSIA_GIT` tuple. Expand `_VENDOR_PACKAGES_ALLOWED_IN_FUCHSIA_GIT` to include generic immediate subdirectories of `//vendor/google/` (`boards`, `bundles`, `products`, `sdk`, `storage`, and `tools`). All of these paths except `//vendor/google/sdk` already appear in the repository. With these paths allowed, no violations remain in the repository, so remove `allowlists/bazel_vendor_paths.json` and set `supports_allowlist = False` on `VendorPathsCheck`. Bug: 565897544 Test: python3 scripts/shac/tests/bazel_lint_test.py Test: prebuilt/tools/shac/shac test scripts/shac/tests/bazel_test.star Test: fx test --host //scripts/shac/tests:bazel_lint_test @//scripts/shac/tests:bazel_test Test: fx host-tool shac check --only bazel_vendor_paths --all Change-Id: I036ba7ff6a2a8fb449082738b16c9db930b3b3d2 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1923573 Reviewed-by: Oliver Newman <olivernewman@google.com> Commit-Queue: David Dorwin <ddorwin@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.