From f7abdbe2b6797f0109459d699e111aa7fa533fc9 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Fri, 3 Jun 2022 02:44:07 -0700 Subject: [PATCH] fix: buildifier visibilty warning on generated code --- npm/private/translate_pnpm_lock.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm/private/translate_pnpm_lock.bzl b/npm/private/translate_pnpm_lock.bzl index c32810135..8c658911f 100644 --- a/npm/private/translate_pnpm_lock.bzl +++ b/npm/private/translate_pnpm_lock.bzl @@ -341,7 +341,8 @@ def _impl(rctx): link_packages = [_link_package(root_package, import_path) for import_path in importer_paths] - defs_bzl_header = generated_by_lines + ["""load("@aspect_rules_js//npm/private:linked_npm_packages.bzl", "linked_npm_packages")"""] + defs_bzl_header = generated_by_lines + ["""# buildifier: disable=bzl-visibility +load("@aspect_rules_js//npm/private:linked_npm_packages.bzl", "linked_npm_packages")"""] npm_imports = _gen_npm_imports(lockfile, rctx.attr)