Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_default_version
1 parent b8c063e commit 4822de3Copy full SHA for 4822de3
1 file changed
java/kotlin-extractor/deps.bzl
@@ -80,7 +80,11 @@ def _get_default_version(repository_ctx):
80
if not res:
81
fail("kotlinc -version failed: %s" % res.stderr)
82
out = (res.stdout or res.stderr).split(" ")
83
+ if "kotlinc-jvm" not in out:
84
+ fail("kotlinc -version output does not contain 'kotlinc-jvm': %s" % out)
85
kotlinc_jvm_index = out.index("kotlinc-jvm")
86
+ if kotlinc_jvm_index + 1 >= len(out):
87
+ fail("kotlinc -version output does not contain a version after 'kotlinc-jvm': %s" % out)
88
return out[kotlinc_jvm_index + 1]
89
90
def _get_available_version(version):
0 commit comments