From 64de767962c09f4a0e2553def75b67f26b6176b2 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Fri, 16 Feb 2024 08:03:54 +0000 Subject: [PATCH] ci: Fix comparison against previous MINOR version Broken in https://github.com/MaterializeInc/materialize/pull/25117 Our major version has always been 0, so there is no way to find a version. --- misc/python/materialize/version_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/python/materialize/version_list.py b/misc/python/materialize/version_list.py index 2e86084cd6040..ad2489ac16847 100644 --- a/misc/python/materialize/version_list.py +++ b/misc/python/materialize/version_list.py @@ -407,7 +407,7 @@ def get_previous_mz_version( excluded_versions = set() if previous_major: - version = MzVersion.create(version.major, 0, 0) + version = MzVersion.create(version.major, version.minor, 0) if version.prerelease is not None and len(version.prerelease) > 0: # simply drop the prerelease, do not try to find a decremented version