feat: add buildozer command to add visibility to the copy_to_bin helper error (#171)

This commit is contained in:
Matt Mackay 2022-06-22 16:46:35 +01:00 committed by GitHub
parent 32882befdf
commit 829e5d513d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ target to {file_basename}'s package using:
buildozer 'new copy_to_bin {target_name}' {file_package}:__pkg__
buildozer 'add srcs {file_basename}' {file_package}:{target_name}
buildozer 'new_load @aspect_bazel_lib//lib:copy_to_bin.bzl copy_to_bin' {file_package}:__pkg__
buildozer 'add visibility {package}:__subpackages__' {file_package}:{target_name}
""".format(
file_basename = file.basename,