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

Display the version number of packages flagged with avoid-version/deprecated gray #6358

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

kit-ty-kate
Copy link
Member

Example of the new output with opam show ocaml-base-compiler:
scrn-2025-01-07-20-00-13

Fixes #6354, probably the less intrusive solution if the color scheme works for you. Compared to removing them completely as suggested in the ticket, it brings an issue of clarity of meaning between what yellow or red means, although this concern seems pretty minimal to me compared to the other UX concerns brought by a potential addition of --all.

Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that there is 2 colors, maybe we should add a note in the manpage for the meaning of colors.

@kit-ty-kate
Copy link
Member Author

Per discussion at today's meeting, i've switched the color to gray instead of crossed+yellow to avoid confusion on whether it is possible to install the affected version or not

@kit-ty-kate
Copy link
Member Author

rebased

@kit-ty-kate kit-ty-kate requested a review from rjbou January 20, 2025 17:32
@rjbou rjbou changed the title Display the version number of packages flagged with avoid-version/deprecated yellow and crossed over Display the version number of packages flagged with avoid-version/deprecated gray Jan 20, 2025
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second commit should mention that the scope is opam show (prefix, in the text, etc.)

src/client/opamCommands.ml Outdated Show resolved Hide resolved
src/client/opamCommands.ml Outdated Show resolved Hide resolved
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@rjbou
Copy link
Collaborator

rjbou commented Jan 20, 2025

If it is possible, can you add a picture with the gray version?

@kit-ty-kate
Copy link
Member Author

scrn-2025-01-20-18-21-32

@kit-ty-kate kit-ty-kate merged commit f80c027 into ocaml:master Jan 20, 2025
42 checks passed
@kit-ty-kate kit-ty-kate deleted the show-avoid-version branch January 20, 2025 19:06
kit-ty-kate added a commit to kit-ty-kate/opam-repository that referenced this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opam show ocaml should not show unreleased versions
2 participants