Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 576885259
  • Loading branch information
java-team-github-bot authored and Guice Team committed Oct 30, 2023
1 parent 73dc9f3 commit 1ab911a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mvn.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def _validate_target_libs_rule_impl(ctx):
"\n\t expected = [" + expected_formatted + "]" +
"\n\t actual = [" + actual_formatted + "]")

_validate_target_libs_rule = rule(
# This rule exists to perform an assertion during the Starlark analysis phase, causing any macro or
# BUILD file instantiating it to fail to generate.
_validate_target_libs_binary = rule(
implementation = _validate_target_libs_rule_impl,
attrs = {
"target": attr.label(aspects = [_collect_exports_aspect]),
Expand Down Expand Up @@ -93,10 +95,9 @@ def gen_maven_artifact(
javadoc_srcs: Source files used to generate the Javadoc maven artifact.
packaging: The packaging used for the artifact, default is "jar".
is_extension: Whether the maven artifact is a Guice extension or not.
"""

_validate_target_libs_rule(
_validate_target_libs_binary(
name = name + "_validate_target_libs",
target = artifact_target,
actual_target_libs = artifact_target_libs,
Expand Down

0 comments on commit 1ab911a

Please sign in to comment.