From b102b9c74ec4e5df0ed95a6db425006a3f3c0041 Mon Sep 17 00:00:00 2001 From: mayeut Date: Wed, 14 Aug 2024 21:24:21 +0200 Subject: [PATCH] fix bad check --- cibuildwheel/oci_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/oci_container.py b/cibuildwheel/oci_container.py index 45c79f7c1..f3512255f 100644 --- a/cibuildwheel/oci_container.py +++ b/cibuildwheel/oci_container.py @@ -104,7 +104,7 @@ def _check_engine_multiarch_support(engine: OCIContainerEngineConfig) -> bool: client_api_version = Version(version_info["Client"]["ApiVersion"]) engine_api_version = Version(version_info["Server"]["ApiVersion"]) multiarch_supported = min(client_api_version, engine_api_version) >= Version("1.32") - if multiarch_supported and int(version_info["Client"]["Version"]) < 20: + if multiarch_supported and int(version_info["Client"]["Version"].split(".")[0]) < 20: # check cli version because version < 20.x consider that experimental must be turned on # for --platform to be allowed. multiarch_supported = version_info["Server"].get("Experimental", False)