admin-requests icon indicating copy to clipboard operation
admin-requests copied to clipboard

Handling packages with invalid `MatchSpec` (for their `dependencies` and `constrains`)

Open jjerphan opened this issue 1 year ago • 6 comments

Context

Some packages published on conda-forge like infowillow-1.6.3-pyhd8ed1ab_0.conda use invalid MatchSpec.

This is for instance the case of one of its dependencies which is encoded as:

pillow-heif >=0.10.0,<1.0.0<py312

This MatchSpec is invalid, since the <py312 suffix is not supported by the MatchSpec specification.

Questions

jjerphan avatar Sep 19 '24 08:09 jjerphan

It doesn't seem to be related to grayskull. I could not find that package either but I did find a reference to it in https://github.com/conda-forge/willow-feedstock/pull/27. It was a human mistake and one should open an issue there. BTW, this repo is not the best place this this report.

ocefpaf avatar Sep 19 '24 10:09 ocefpaf

I think it is a general question for conda-forge about whether it is ok to remove packages that have non-sensical specs, that could break the parsing of the channel data.

SylvainCorlay avatar Sep 19 '24 10:09 SylvainCorlay

FWIW, this shouldn't be a problem in the future provided conda-build 24.7+ is in use (https://github.com/conda/conda-build/pull/5359).

jaimergp avatar Sep 19 '24 10:09 jaimergp

I think it is a general question for conda-forge about whether it is ok to remove packages that have non-sensical specs, that could break the parsing of the channel data.

This happens all the time. We discussed it in element channel but I'll post here for posterity. The steps to fix it are:

  1. Fix the feedstock, also open the issue there so the maintainers know of this issue.
  2. Send a repodatapatch PR to fix the current package

ocefpaf avatar Sep 19 '24 11:09 ocefpaf

BTW, this repo is not the best place this this report.

Sorry for that. Where shall I report issues in the future?

jjerphan avatar Sep 19 '24 12:09 jjerphan

Sorry for that

Not a problem.

Where shall I report issues in the future?

For feedstock problems? In the feedstock. For general problems we use https://github.com/conda-forge/conda-forge.github.io.

ocefpaf avatar Sep 19 '24 12:09 ocefpaf