mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Kotlin unit tests: use best plugin version compatible with environment kotlinc
This commit is contained in:
@@ -46,10 +46,10 @@ def get_single_version(fakeVersionOutput = None):
|
||||
if len(matching_minor_versions) == 0:
|
||||
raise Exception(f'Cannot find a matching minor version for kotlinc version {current_version} (got {versionOutput}; know about {str(many_versions)})')
|
||||
|
||||
matching_minor_versions.sort()
|
||||
matching_minor_versions.sort(reverse = True)
|
||||
|
||||
for version in matching_minor_versions:
|
||||
if version >= current_version:
|
||||
if version <= current_version:
|
||||
return version_tuple_to_string(version)
|
||||
|
||||
return version_tuple_to_string(matching_minor_versions[-1])
|
||||
|
||||
Reference in New Issue
Block a user