Fix parse when the platform version contains a minor component

This commit is contained in:
Alexandre Esteves
2025-10-08 21:55:27 +01:00
parent 33dead5220
commit f4e08271a6
@@ -110,7 +110,9 @@ in
1
else
coerceInt (parseVersion repo "platforms" minPlatformVersion);
latestPlatformVersionInt = lib.max minPlatformVersionInt (coerceInt repo.latest.platforms);
latestPlatformVersionInt = lib.max minPlatformVersionInt (
coerceInt (lib.versions.major repo.latest.platforms)
);
firstPlatformVersionInt = lib.max minPlatformVersionInt (
latestPlatformVersionInt - (lib.max 1 numLatestPlatformVersions) + 1
);