diff --git a/conda_forge_tick/migrators/migration_yaml.py b/conda_forge_tick/migrators/migration_yaml.py index 6a73a849a..81d2ea814 100644 --- a/conda_forge_tick/migrators/migration_yaml.py +++ b/conda_forge_tick/migrators/migration_yaml.py @@ -188,6 +188,10 @@ def filter(self, attrs: "AttrsTypedDict", not_bad_str_start: str = "") -> bool: platform_filtered = False if platform_allowlist: + # migrator.platform_allowlist allows both styles: "osx-64" & "osx_64"; + # before comparison, normalize to consistently use underscores (we get + # "_" in attrs.platforms from the feedstock_parser) + platform_allowlist = [x.replace("-", "_") for x in platform_allowlist] # filter out nodes where the intersection between # attrs.platforms and platform_allowlist is empty intersection = set(attrs.get("platforms", {})) & set(platform_allowlist)