Skip to content

Commit 6533e2e

Browse files
authored
Merge pull request github#10976 from igfoo/igfoo/version
Kotlin: Ignore tags when comparing versions
2 parents b4242dd + dd7ec49 commit 6533e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/kotlin_plugin_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_single_version(fakeVersionOutput = None):
4949
matching_minor_versions.sort(reverse = True)
5050

5151
for version in matching_minor_versions:
52-
if version <= current_version:
52+
if version[0:3] <= current_version[0:3]:
5353
return version_tuple_to_string(version)
5454

5555
return version_tuple_to_string(matching_minor_versions[-1])

0 commit comments

Comments
 (0)