Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8b163a

Browse files
smowtonigfoo
authored andcommitted
Fix running on patchlevel versions below the highest of that minor version
(For example, picking 1.6.10 to match the host kotlinc when both 1.6.10 and 1.6.20 are available)
1 parent 62f39d7 commit d8b163a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/kotlin_plugin_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def is_windows():
1616
def get_single_version():
1717
# TODO: `shell=True` is a workaround to get CI working on Windows. It breaks the build on Linux.
1818
versionOutput = subprocess.run(['kotlinc', '-version'], capture_output=True, text=True, shell=is_windows())
19-
m = re.match(r'.* kotlinc-jvm ([0-9]+)\.([0-9]+\.)([0-9]+) .*', versionOutput.stderr)
19+
m = re.match(r'.* kotlinc-jvm ([0-9]+)\.([0-9]+)\.([0-9]+) .*', versionOutput.stderr)
2020
if m is None:
2121
raise Exception('Cannot detect version of kotlinc (got ' + str(versionOutput) + ')')
2222
major = m.group(1)

0 commit comments

Comments
 (0)