File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -674,16 +674,17 @@ def globals(self) -> GlobalOptions:
674
674
675
675
def _check_pinned_image (self , value : str , pinned_images : Mapping [str , str ]) -> None :
676
676
error_set = {"manylinux1" , "manylinux2010" , "manylinux_2_24" , "musllinux_1_1" }
677
- warning_set = error_set # shall include error_set
677
+ warning_set : set [str ] = set ()
678
+
679
+ if value in error_set :
680
+ msg = (
681
+ f"cibuildwheel 3.x does not support the image { value !r} . Either upgrade to a "
682
+ "supported image or continue using the image by pinning it directly with"
683
+ " its full OCI registry '<name>{:<tag>|@<digest>}'."
684
+ )
685
+ raise errors .DeprecationError (msg )
678
686
679
687
if value in warning_set and value not in self ._image_warnings :
680
- if value in error_set :
681
- msg = (
682
- f"cibuildwheel 3.x does not support the image { value !r} . Either upgrade to a "
683
- "supported image or continue using the image by pinning it directly with"
684
- " its full OCI registry '<name>{:<tag>|@<digest>}'."
685
- )
686
- raise errors .DeprecationError (msg )
687
688
self ._image_warnings .add (value )
688
689
msg = (
689
690
f"Deprecated image { value !r} . This value will not work"
You can’t perform that action at this time.
0 commit comments