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.bat
kotlinc.exe
1 parent 65df2bb commit 0ad8ed3Copy full SHA for 0ad8ed3
1 file changed
java/kotlin-extractor/deps.bzl
@@ -76,9 +76,8 @@ 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)
+ if repository_ctx.os.name == "windows" and not kotlinc.basename.endswith(".bat"):
+ kotlinc = repository_ctx.path("%s.bat" % kotlinc)
82
res = repository_ctx.execute([kotlinc, "-version"])
83
if not res:
84
fail("kotlinc -version failed: %s" % res.stderr)
0 commit comments