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.
kotlinc
repository_ctx.which
1 parent 0ad8ed3 commit 24c7ad5Copy full SHA for 24c7ad5
1 file changed
java/kotlin-extractor/deps.bzl
@@ -73,12 +73,9 @@ def _get_default_version(repository_ctx):
73
default_version = repository_ctx.getenv("CODEQL_KOTLIN_SINGLE_VERSION")
74
if default_version:
75
return default_version
76
- kotlinc = repository_ctx.which("kotlinc")
77
- if not kotlinc:
+ if not repository_ctx.which("kotlinc"):
78
return DEFAULT_VERSION
79
- if repository_ctx.os.name == "windows" and not kotlinc.basename.endswith(".bat"):
80
- kotlinc = repository_ctx.path("%s.bat" % kotlinc)
81
- res = repository_ctx.execute([kotlinc, "-version"])
+ res = repository_ctx.execute(["kotlinc", "-version"])
82
if not res:
83
fail("kotlinc -version failed: %s" % res.stderr)
84
out = (res.stdout or res.stderr).split(" ")
0 commit comments