Skip to content

Commit

Permalink
Make exopackage_apk_warning file unique to the target name
Browse files Browse the repository at this point in the history
Summary: Otherwise when a genrule tries to consume multiple of these, it will complain.

Reviewed By: ezgicicek

Differential Revision: D57156042

fbshipit-source-id: 1b5a0bd8bc8bf171c89b285adf7c6712f749e7b3
  • Loading branch information
Ian Childs authored and facebook-github-bot committed May 9, 2024
1 parent 9de4fc1 commit f51a390
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prelude/android/android_apk.bzl
Expand Up @@ -43,7 +43,10 @@ def android_apk_impl(ctx: AnalysisContext) -> list[Provider]:
native_library_info = native_library_info.exopackage_info,
resources_info = resources_info.exopackage_info,
)
default_output = ctx.actions.write("exopackage_apk_warning", "exopackage apks should not be used externally, try buck install or building with exopackage disabled\n")
default_output = ctx.actions.write(
"{}_exopackage_apk_warning".format(ctx.label.name),
"exopackage apks should not be used externally, try buck install or building with exopackage disabled\n",
)
sub_targets["exo_apk"] = [DefaultInfo(default_output = output_apk)] # Used by tests
else:
exopackage_info = None
Expand Down

0 comments on commit f51a390

Please sign in to comment.