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.
.exe
kotlinc
1 parent b8010f2 commit 65df2bbCopy full SHA for 65df2bb
1 file changed
java/kotlin-extractor/deps.bzl
@@ -76,6 +76,9 @@ def _get_default_version(repository_ctx):
76
kotlinc = repository_ctx.which("kotlinc")
77
if not kotlinc:
78
return DEFAULT_VERSION
79
+ if repository_ctx.os.name == "windows" and not kotlinc.basename.endswith(".exe"):
80
+ # for some reason the result from `which` can fail to have exe
81
+ kotlinc = repository_ctx.path("%s.exe" % kotlinc)
82
res = repository_ctx.execute([kotlinc, "-version"])
83
if not res:
84
fail("kotlinc -version failed: %s" % res.stderr)
0 commit comments