-
Notifications
You must be signed in to change notification settings - Fork 412
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
pkg: relax version constraints for ocamlformat dev tool #11019
pkg: relax version constraints for ocamlformat dev tool #11019
Conversation
a1c7252
to
1ecdbcd
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.
Seems sensible to me, I would assume ocamlformat.0.26.2.1
should qualify if one requests 0.26.2
.
bin/lock_dev_tool.ml
Outdated
|
||
Read more at: https://opam.ocaml.org/doc/Manual.html#Version-ordering | ||
*) | ||
let max_version = String.concat ~sep:"" [ min_version; "___" ] in |
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.
let max_version = String.concat ~sep:"" [ min_version; "___" ] in | |
let max_version = min_version ^ "___" in |
Would you like to add a test ? |
98940f5
to
4ccfdbb
Compare
Added a test |
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.
LGTM! Nice and clear test.
Previously dune would install the exact version of ocamlformat specified in the .ocamlformat file in the project's root. This prevents alternative distributions of the ocamlformat package from being used, as these typically append a suffix to the version number. The motivation for this change is supporting a binary dev tools distribution where the ocamlformat package is named like "ocamlformat.0.26.2+binary", and we want that package to be installable when the .ocamlformat file of a project specifies "version=0.26.2". Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
4ccfdbb
to
0544313
Compare
Previously dune would install the exact version of ocamlformat specified in the .ocamlformat file in the project's root. This prevents alternative distributions of the ocamlformat package from being used, as these typically append a suffix to the version number. The motivation for this change is supporting a binary dev tools distribution where the ocamlformat package is named like "ocamlformat.0.26.2+binary", and we want that package to be installable when the .ocamlformat file of a project specifies "version=0.26.2". Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
Previously dune would install the exact version of ocamlformat specified in the .ocamlformat file in the project's root. This prevents alternative distributions of the ocamlformat package from being used, as these typically append a suffix to the version number.
The motivation for this change is supporting a binary dev tools distribution where the ocamlformat package is named like "ocamlformat.0.26.2+binary", and we want that package to be installable when the .ocamlformat file of a project specifies "version=0.26.2".