conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
146 stars 169 forks source link

Linter hint about `{{ stdlib("c") }}` variable is incorrect for noarch packages #1924

Closed BastianZim closed 2 months ago

BastianZim commented 2 months ago

Solution to issue cannot be found in the documentation.

Issue

Platform-specific noarch packages that use __osx receive a hint that they should depend on {{ stdlib("c") }} but they are noarch and do not require it.

Example: https://github.com/conda-forge/poetry-feedstock/pull/99#issuecomment-2101613350 Code: https://github.com/conda-forge/conda-smithy/blob/f892a5b8ceed015cae5dab453a6869e2ca861f87/conda_smithy/lint_recipe.py#L885 Background: https://github.com/conda-forge/conda-forge.github.io/issues/2102#issuecomment-2103123950

BastianZim commented 2 months ago

CC @jakirkham and @h-vetinari