We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9184f0d commit 97fced1Copy full SHA for 97fced1
scala/private/rule_impls.bzl
@@ -228,4 +228,6 @@ def is_windows(ctx):
228
# This must be a runtime used in generated java_binary script (usually workers using SecurityManager)
229
def allow_security_manager(ctx, runtime = None):
230
java_runtime = runtime if runtime else ctx.attr._java_host_runtime[java_common.JavaRuntimeInfo]
231
- return ["-Djava.security.manager=allow"] if java_runtime.version >= 17 else []
+
232
+ # Bazel 5.x doesn't have java_runtime.version defined
233
+ return ["-Djava.security.manager=allow"] if hasattr(java_runtime, "version") and java_runtime.version >= 17 else []
0 commit comments