Skip to content

cmdliner 2.0.0 support #6425

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

Open
dbuenzli opened this issue Mar 15, 2025 · 5 comments · May be fixed by #6435
Open

cmdliner 2.0.0 support #6425

dbuenzli opened this issue Mar 15, 2025 · 5 comments · May be fixed by #6435
Milestone

Comments

@dbuenzli
Copy link
Contributor

It seems that the latest version of your package on the opam repository will not compile with the upcoming cmdliner 2.0.0 release.

This is either because you are using deprecated identifiers that are removed in 2.0.0 or because you still use argument converters as pairs which has been (sadly only silently) deprecated since 2017.

There are a few instruction here on how to make it compatible. If you run into problem or need more help use this issue, I'm listening.

@dbuenzli
Copy link
Contributor Author

This concerns the packages opam-client.2.3.0 and opam-installer.2.3.0.

@kit-ty-kate
Copy link
Member

Whether or not we can support cmdliner 2.0.0 will depend on the status of dbuenzli/cmdliner#200
If this is given the go ahead with no escape hatch, we'll probably sadly have no choice but fork the latest stable version of cmdliner 1.x instead.

@dbuenzli
Copy link
Contributor Author

I don't think so, as mentioned in the instruction I linked to:

Projects can handle all breaking changes performed by 2.0 and still compile with cmdliner.1.3.0

@kit-ty-kate
Copy link
Member

I'm not sure to understand. Do you mean cmdliner will still behave the same with regards to prefixes in 2.0.0?

@dbuenzli
Copy link
Contributor Author

dbuenzli commented Mar 17, 2025

No it won't. But as far as I know these packages do not install opam the tool which is your worry.

@kit-ty-kate kit-ty-kate linked a pull request Mar 26, 2025 that will close this issue
2 tasks
@kit-ty-kate kit-ty-kate modified the milestones: 2.4.0~alpha1, 2.4.0~alpha2 Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants