Skip to content

Commit

Permalink
Add __json-bzl-args genrule
Browse files Browse the repository at this point in the history
Reviewed By: snarkmaster

Differential Revision: D29683673

fbshipit-source-id: a75f2e9bdb0330f8ddab45e52227ac34d7e194ac
  • Loading branch information
justintrudell authored and facebook-github-bot committed Jul 13, 2021
1 parent cbe6080 commit f5a42c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion antlir/bzl/shape.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def _python_data(
)
return normalize_target(":" + name)

def _json_file(name, instance): # pragma: no cover
def _json_file(name, instance, visibility = None): # pragma: no cover
"""
Serialize the given shape instance to a JSON file that can be used in the
`resources` section of a `python_binary` or a `$(location)` macro in a
Expand All @@ -733,6 +733,7 @@ def _json_file(name, instance): # pragma: no cover
# Antlir users should not directly use `shape`, but we do use it
# as an implementation detail of "builder" / "publisher" targets.
antlir_rule = "user-internal",
visibility = visibility,
)
return normalize_target(":" + name)

Expand Down

0 comments on commit f5a42c2

Please sign in to comment.