-
Notifications
You must be signed in to change notification settings - Fork 358
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
"No agreement on the version of ocaml" while opam file seems fine #5427
Comments
which version of opam do you have? |
With the opam 2.1.4 i get:
which, while not being the most concise (see #4373) is at least correct. |
$ opam --version This kind of opam message is neither concise nor immediately understandable.
I feel and think that the opam file is WRONG and MISLEADING. It also means that packages.opam.org (and opam) accepts WRONG and MISLEADING packages regarding ocaml version. At least one, but I have memories of other packages. What do you think about the following proposition? Proposition: PS: where is the specification of opam? |
Please keep discussions polite. If you feel that ocaml-top opam file is not correct, please help fixing it by opening a PR in its own repository. If you want to discuss, or better help improve opam repository and its policy, please help in their repository, there is also several discussions on ocaml forum concerning opam repository. This bug tracker is only for opam issues, not ecosystem or package issues. So, on opam itself, when no solution is found, opam tries to rollback to find a reason for no solution to the request. What happened in your case is that you didn't try to install a specific version of ocaml-top, but asked a version to be installed. And one choosen path by opam was ocaml-top version 1.1.2 or 1.1.3 that have the constraint
Opam should take the path of the latest version when it's possible, there is an issue tracking this problem: #4373 (reproduced here: #5130 (comment)). Closing this issue as duplicate. You can find opam files specification in opam manual. |
1/ We are talking about facts. What is not polite? 2/ It looks like opam, then packages.opam.org can accept WRONG and/or MISLEADING opam files and let packages be published. I don't understand how the CI process can accept that. Can you ? 3/ I think that it IS an opam issue not to enforce a clear ocaml version range, which is the main criterion when installing a package on a current OCaml configuration (system-wide or possibly in a so-called OCaml "switch"). And it must be mandatory for any package author/publisher. |
1/ It's possible to talk about facts and be polite, it's completely 2 different things. It's always better to ask to involved people about how project/community works, how it is managed, etc. before openly and loudly criticising other people work. 2-3/ As said in previous answer, this is not an opam issue. Maybe there was a misunderstanding. Opam (this repository) is the tool, the package manager. It is the opam repository who is in charge of managing the opam repository, in which maintainer publish their packages, in which contribution follow guidelines, etc. And opam.ocaml.org is just a website that contains opam manual/documentation, and opam repository package information. These are 3 distinct repositories and projects. |
We are very polite, aren't we? Do you think that the tool (opam) can let people write a wrong .opam file? For a published package, who is responsible for: The expected result is: |
opam install
seems to tell the contrary of what is stated in the opam file. How is it possible?See example: OCamlPro/ocaml-top#76 where we have ocaml.4.02.0 or newer required and opam says "- ocaml-top → ocaml < 4.02.4":
and
The text was updated successfully, but these errors were encountered: