Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check all URLs in opam file to ensure they are live #370

Open
shonfeder opened this issue Oct 2, 2024 · 0 comments
Open

Check all URLs in opam file to ensure they are live #370

shonfeder opened this issue Oct 2, 2024 · 0 comments

Comments

@shonfeder
Copy link
Contributor

As per https://github.com/ocaml/opam-repository/wiki/PR-checks#for-any-additions, one of the manual checks opam repo maintainers currently are meant to perform is validating that URLs (e.g., to the project homepage) are valid. This is not really feasible in practice, due to the tedious and easily forgotten nature of this check. But this should be easy to automate,

For any field that should hold a a URL to a resource accessible via HTTP as its primary value, we can make a request to ensure it returns an OK status. As pre https://opam.ocaml.org/doc/Manual.html#url, the fields in questions (at least for a start) should be

  • homepage
  • bug-reports
  • dev-repo

We should not need to check the url field (or file), since this is tested already when trying to build the source during the build/test steps. However, we could lint this if we wanted to get an earlier failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant