Skip to content

Commit

Permalink
buck2: fix classpath subtarget
Browse files Browse the repository at this point in the history
Summary:
Not sure how I landed the test depending on this without the change, but here
it is... As IanChilds suggested, change the format from JSON to text.

Reviewed By: milend

Differential Revision: D46685404

fbshipit-source-id: 0a7fb6409284647cfa8c57ec07e97bbd647b6531
  • Loading branch information
krallin authored and facebook-github-bot committed Jun 13, 2023
1 parent 36740c8 commit be83d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prelude/java/utils/java_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,5 @@ def get_class_to_source_map_info(

def get_classpath_subtarget(actions: "actions", packaging_info: "JavaPackagingInfo") -> {str.type: ["provider"]}:
proj = packaging_info.packaging_deps.project_as_args("full_jar_args")
output = actions.write_json("classpath.json", {"jars": proj})
output = actions.write("classpath", proj)
return {"classpath": [DefaultInfo(output, other_outputs = [proj])]}

0 comments on commit be83d41

Please sign in to comment.