Skip to content
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

opam show ocaml should not show unreleased versions #6354

Open
kit-ty-kate opened this issue Jan 6, 2025 · 2 comments · May be fixed by #6358
Open

opam show ocaml should not show unreleased versions #6354

kit-ty-kate opened this issue Jan 6, 2025 · 2 comments · May be fixed by #6358
Labels
Milestone

Comments

@kit-ty-kate
Copy link
Member

Similarly to #6098, it is surprising for users to see opam show ocaml display 5.4.0 (unreleased at the time of writing and only available via the ocaml-variants.5.4.0+trunk package which is tagged with avoid-version) as the latest available version (all-versions field).

To remedy that, i propose to hide unavailable (currently displayed red and crossed, if the terminal allows it) as well as versions only available using avoid-version/deprecated dependencies by default from the all-versions field unless --all is given.

@dra27
Copy link
Member

dra27 commented Jan 7, 2025

Not sure how this could be done in general without involving the solver (which seems a bit heavy for opam show?) - but specifically for the ocaml package, we could actually flag ocaml.5.4.0 as avoid-version until either ocaml-base-compiler.5.4.0~alpha is released or even the full release itself?

@kit-ty-kate
Copy link
Member Author

For some reason i hadn't thought of the cost of checking and it does indeed involve the solver in some capacity.

I agree with your proposal and i've opened ocaml/opam-repository#27227 and #6358 to show what it would look like.

@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants