From f5d576fc75cee9c46ce9d6d0f14d02f4a83540b4 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Thu, 27 Jul 2023 22:48:56 -0700 Subject: [PATCH] Limits visibility of browser Bazel packages. Refs #74. --- bazel/browsers/chromium/BUILD.bazel | 3 +-- bazel/browsers/firefox/BUILD.bazel | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bazel/browsers/chromium/BUILD.bazel b/bazel/browsers/chromium/BUILD.bazel index df1cf41e..d9b20c01 100644 --- a/bazel/browsers/chromium/BUILD.bazel +++ b/bazel/browsers/chromium/BUILD.bazel @@ -1,8 +1,6 @@ load("@io_bazel_rules_webtesting//web:web.bzl", "browser") load("//bazel/browsers:browser_toolchain_alias.bzl", "browser_toolchain_alias") -package(default_visibility = ["//visibility:public"]) - PLATFORM_METADATA = select({ "//bazel/constraints:linux_x64": [ "@org_chromium_chromedriver_linux_x64//:metadata", @@ -31,6 +29,7 @@ browser( # Same as default config, but not headless. "//tools/browsers:use_debug_browsers_config": "chromium_debug.json", }), + visibility = ["//visibility:public"], deps = PLATFORM_METADATA + [ "@io_bazel_rules_webtesting//go/wsl", ], diff --git a/bazel/browsers/firefox/BUILD.bazel b/bazel/browsers/firefox/BUILD.bazel index 4c80865e..758ff90d 100644 --- a/bazel/browsers/firefox/BUILD.bazel +++ b/bazel/browsers/firefox/BUILD.bazel @@ -1,8 +1,6 @@ load("@io_bazel_rules_webtesting//web:web.bzl", "browser") load("//bazel/browsers:browser_toolchain_alias.bzl", "browser_toolchain_alias") -package(default_visibility = ["//visibility:public"]) - PLATFORM_METADATA = select({ "//bazel/constraints:linux_x64": [ "@org_mozilla_firefox_linux_x64//:metadata", @@ -38,6 +36,7 @@ browser( # Same as default config, but not headless. "//tools/browsers:use_debug_browsers_config": "firefox_debug.json", }), + visibility = ["//visibility:public"], deps = PLATFORM_METADATA + [ "@io_bazel_rules_webtesting//go/wsl", ],