Skip to content

Commit

Permalink
Fix version check for Java platformization
Browse files Browse the repository at this point in the history
  • Loading branch information
philwo committed May 21, 2021
1 parent b353698 commit 49e0273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/rbe_repo/build_gen.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def create_java_runtime(ctx, java_home, java_version):
java_version: the Java runtime release version
"""
bazel_version = tuple([int(n) for n in ctx.attr.bazel_version.split(".")])
if bazel_version > (4, 0, 0) or not native.bazel_version:
if bazel_version > (5, 0, 0) or not native.bazel_version:
template = ctx.path(Label("@bazel_toolchains//rules/rbe_repo:BUILD.local_java_runtime.tpl"))
else:
template = ctx.path(Label("@bazel_toolchains//rules/rbe_repo:BUILD.java.tpl"))
Expand Down

0 comments on commit 49e0273

Please sign in to comment.