Skip to content

Commit

Permalink
bugfix: correct version search
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Aug 15, 2023
1 parent ec38567 commit 4162b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jill/utils/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def latest_version(version: str, system, arch, **kwargs) -> str:
return max(compat_releases, key=lambda x: Version(x[0]))[0]
else:
filtered_compat = [
x for x in compat_releases if x[0].startswith(version)]
x for x in compat_releases if Version(x[0]).minor_version == Version(version).minor_version]
if len(filtered_compat) == 0:
latest_ver = max(compat_releases, key=lambda x: Version(x[0]))[0]
print(f'{color.RED}failed to find latest Julia version for "{version}", "{system}" and "{arch}". Trying latest compatible version "{latest_ver}" instead.{color.END}')
Expand Down

0 comments on commit 4162b54

Please sign in to comment.