Skip to content

Commit

Permalink
fix bad check
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Aug 15, 2024
1 parent ae513cc commit 64c788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 64c788a

Please sign in to comment.