-
Notifications
You must be signed in to change notification settings - Fork 364
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
Ensure each repositories stored in repos-config is associated with an URL #6249
Ensure each repositories stored in repos-config is associated with an URL #6249
Conversation
6aa5792
to
5ece562
Compare
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.
Agree on the idea!
Even if it is not used, it needs a test to see the change and no change that are written in the main comment.
I'm not sure to understand. Aside from crafting a custom repos-config file which can't happen in the wild i don't think there is a way to test this. |
That's the idea :) |
5ece562
to
b52517c
Compare
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.
I've added a test, it's mainly in the idea to thee the diff, even if it can't happen with the binary
b52517c
to
f0ddae3
Compare
Apply changes from ocaml/opam#6249
This is mostly cleanup work noticed as i was looking at implementing #5553.
Looking at the code of
OpamFile.Repos_config
, i got surprised having repositories without any url was allowed ('a option
) so i digged a little and it seems that theNone
state is not used anywhere:Missing repository URL
repos-config
would be accepted but ignored internally and i have no idea why it would ever be usedIn any case, this special case is not tested anywhere in the test-suite either so it looks reasonable to assume it was never meant to be handled, and reading the commit that added that possibility 667eacd, it seems to have been added with the idea that "it might be useful in the future", but 8 years later i don't think it turned out true at all.
ocaml-opam/opam-rt#79 should be merged first right before merging this PR