Skip to content

linting produces false positives on compiler releases #434

@shonfeder

Description

@shonfeder

See, e.g., ocaml/opam-repository#27915 (comment) and ocaml/opam-repository#27613

The following are the specious linting problems for the compiler

  1. Error in ocaml-variants.5.4.0~alpha1+options: No package source directory provided.
  2. Warning in ocaml-compiler.5.4.0~alpha1: The package has a dune-project file but no explicit dependency on dune was found.
  3. Error in ocaml-base-compiler.5.4.0~alpha1: No package source directory provided.
  4. Error in ocaml.5.4.0: conf packages should always use the 'conf-' name prefix, the 'conf' flag, and the 'depext' field all together, but this package only has the 'conf' flag

And an explanation of why they are not relevant is provided here: ocaml/opam-repository#27915 (comment)

Thanks to @ivnhk for noting this as a recurrent issue.

I am guessing that the first step in tackling this is to analyze out ocaml/opam-repository#27915 (comment) in comparison with our current logic for these checks to figure out how we can account for this case.

It's possible that special casing the compiler releases may be our only option, but where possible we should opt for more general fixes.

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions