bazelbuild / rules_closure

Closure rules for Bazel
https://developers.google.com/closure
Apache License 2.0
152 stars 114 forks source link

Error: 'JavaInfo' value has no field or method 'transitive_runtime_deps' #578

Closed sgowroji closed 1 year ago

sgowroji commented 1 year ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3241#0189fc86-a089-4be1-a523-2ca0cee879dc

Platform : Linux, MacOS

Logs :

ERROR: /var/lib/buildkite-agent/builds/bk-docker-4nsr/bazel-downstream-projects/rules_closure/closure/templates/test/BUILD:61:28: in _closure_js_template_library rule //closure/templates/test:plugin_soy_soy_js:
Traceback (most recent call last):
    File "/var/lib/buildkite-agent/builds/bk-docker-4nsr/bazel-downstream-projects/rules_closure/closure/templates/closure_js_template_library.bzl", line 56, column 57, in _impl
        transitive = [m[SoyPluginInfo].generator.runtime.transitive_runtime_deps for m in ctx.attr.plugins],
Error: 'JavaInfo' value has no field or method 'transitive_runtime_deps'
Available attributes: _compile_time_java_dependencies, _constraints, _neverlink, _transitive_full_compile_time_jars, annotation_processing, api_generating_plugins, compilation_info, compile_jars, full_compile_jars, java_outputs, module_flags_info, outputs, plugins, runtime_output_jars, source_jars, transitive_compile_time_jars, transitive_native_libraries, transitive_runtime_jars, transitive_source_jars
(02:25:07) ERROR: /var/lib/buildkite-agent/builds/bk-docker-4nsr/bazel-downstream-projects/rules_closure/closure/templates/test/BUILD:61:28: Analysis of target '//closure/templates/test:plugin_soy_soy_js' failed
(02:25:07) ERROR: Analysis of target '//closure/templates/test:plugin_soy_soy_js' failed; build aborted

Refereces https://github.com/bazelbuild/rules_kotlin/issues/1003, https://github.com/bazelbuild/rules_groovy/issues/66

CC Greenteam @Wyverald