-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add linting check for restricted prefixes #316
Conversation
The list of conflict-class (that we want the linter to help keep in sync with the prefixes) is discussed on ocaml/opam-repository#25861 (review) The discussion is not complete (as time of writing of this comment). |
The current prefix to conflict class mapping according to my understanding is:
This can easily be changed as the discussion evolves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I have one question and related suggestion about the new-package detection logic. My other suggestions are minor documentation and testing-related things.
b1627f5
to
450a7e5
Compare
Recommendations have been integrated and the PR has been rebased onto master; now we're waiting for the finalisation of the discussion on |
@raphael-proust could you confirm whether the prefix/conflict classes here match what you are expect from a maintenance angle? |
The prefix (presented as a glob) / conflict classes (presented as a literal string) that were settled on are:
|
@punchagan since I've touched this a fair bit and you're looking at the linting stuff anyhow, would mind reviewing this when you have a chance? |
c935b4f
to
f9e4507
Compare
This looks good to me. I ended up re-ordering and splitting up the commits slightly to split out the refactor commits and the changes that add the new lint checks. We could move the "analysis" to see if a package is a newly published one to the analysis module, as discussed yesterday. But, it could also come as a separate change. |
Co-authored-by: Shon Feder <[email protected]>
Co-authored-by: Shon Feder <[email protected]>
f9e4507
to
740bb89
Compare
Thank you for the review and the cleanup, @punchagan! I've made a no-op change just to sign the commits so I get the green label XD
I think that would be the right way, but locating that check in the linting rather the analysis was already inherited in this work. If anything, that should be a followup I think, as it would possibly affect other parts of the pipeline. However, I think we may just postpone this entirely, as we are liable to be replacing all of this with the propotype work soon. |
Fixes #315.