Skip to content

Commit dd7ec49

Browse files
committed
Kotlin: Ignore tags when comparing versions
We thought that 1.7.20-Beta > 1.7.20, and so tried to use 1.7.0's extractor with 1.7.20.
1 parent 15e5faf commit dd7ec49

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)