-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[new release] ocamlmig (5.2-20250202) #27353
Conversation
CHANGES: Correct a failure to use some opam-installed files.
"csexp" | ||
"ppx_partial" | ||
"ocaml" {>= "4.08"} | ||
"alcotest" {"1" = "0" & >= "1.3.0"} |
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.
"alcotest" {"1" = "0" & >= "1.3.0"} | |
"alcotest" {"1" = "0" & >= "1.3.0"} |
Why you have these funny false bounds (also below)? If you want you could use {with-dev-setup}
and make them available only when invoking opam with that flag
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.
The package vendors (a modified copy of) ocamlformat, which means the dependencies section of my opam file copies the dependencies section from ocamlformat's opam file, which is where the alcootest dependency and others come from.
In the ocamlformat package, alcootest is listed as {with-dev-setup & >= "1.3.0"}
, but that doesn't make sense for my package, since my tests don't use alcootest. So I mechanically replace all the with-dev-setup
that come from ocamlformat with false
. But since syntactically that's not allowed (not sure if that's a shortcoming of dune-project or opam itself), instead of false
, I use "1" = "0"
which means the same thing :/.
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.
If you don't need these, why not dropping them altogether?
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.
The import of ocamlformat's dependencies is done by a script. Dropping the dependencies entirely would involve parsing opam dependencies, which is much more involved than a call to sed.
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.
Actually it would involve parsing ocamlformat's dune-project, but the general point is the same.
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 meant more if it was ok for me to remove them here :)
I suppose this is fine, but the previous release already has them, and
future releases will keep adding them back, so that seems like unnecessary
manual work.
Le mer. 5 févr. 2025, 10:37, Marcello Seri ***@***.***> a
écrit :
… ***@***.**** commented on this pull request.
------------------------------
In packages/ocamlmig/ocamlmig.5.2-20250202/opam
<#27353 (comment)>
:
> +maintainer: ["Valentin Gatien-Baron ***@***.***>"]
+authors: ["Valentin Gatien-Baron ***@***.***>"]
+license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
+homepage: "https://github.com/v-gb/ocamlmig"
+doc: "https://github.com/v-gb/ocamlmig/blob/main/README.md"
+bug-reports: "https://github.com/v-gb/ocamlmig/issues"
+depends: [
+ "ocaml" {>= "5.2" & < "5.3"}
+ "dune" {>= "3.15"}
+ "base"
+ "core"
+ "core_unix"
+ "csexp"
+ "ppx_partial"
+ "ocaml" {>= "4.08"}
+ "alcotest" {"1" = "0" & >= "1.3.0"}
I meant more if it was ok for me to remove them here :)
—
Reply to this email directly, view it on GitHub
<#27353 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJXIUIDXBZBFSYHDWQQ2ST2OHLUJAVCNFSM6AAAAABWLAZIY6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKOJVGEZDCNRZGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It does not take much, and avoid unnecessary checks in the dependency solver. I'll keep an eye out and remove it also in future releases |
By the way, why not leaving it with |
The ocp-indent change is not correct though. |
I'll likely want to use with-dev-setup for my own purpose. |
I think the flags are filtered a priori. But that is not really my point, it was more to cleanup the dependencies and to have filters that are easier to read. I am going to open an issue in dune to support For |
I just went to check, if you use |
Thanks, I'll try that! |
So I tried this, and even though the opam files look fine, dune itself doesn't understand what's going on, which causes |
For the true case, the true should be completely unnecessary though, you only need “version bound or (false and version bound)”. Am I wrong? |
In any case true or false should be correctly interpreted, if that is not the case we should raise an issue on the dune repository |
Right, I suppose in this case, I can just delete the true case.
|
Thanks!🙏 |
OCaml source code rewriting tool
CHANGES:
Correct a failure to use some opam-installed files.