Fix mistake in osgi.bzl to actually use list source_jars.

Bazel 7 updated java_out.source_jars to return a Depset.

Release images are still on Bazel 6, but cloudtops were updated to Bazel 7 already.

PiperOrigin-RevId: 617253874
pull/16227/head
Sandy Zhang 11 months ago committed by Copybara-Service
parent d9727cd657
commit 925de189ec
  1. 2
      java/osgi/osgi.bzl

@ -174,7 +174,7 @@ def _osgi_jar_impl(ctx):
source_jars = source_jars.to_list()
if len(source_jars) > 1:
fail("osgi_jar rule doesn't know how to deal with more than one source jar.")
source_jar = target_java_output.source_jars[0]
source_jar = source_jars[0]
output_jar = ctx.outputs.output_jar

Loading…
Cancel
Save