Skip to content

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

Merged
kit-ty-kate merged 3 commits intoocaml:masterfrom
kit-ty-kate:show-avoid-version
Jan 20, 2025
Merged

Display the version number of packages flagged with avoid-version/deprecated gray#6358
kit-ty-kate merged 3 commits intoocaml:masterfrom
kit-ty-kate:show-avoid-version

Conversation

@kit-ty-kate
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.)

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

rjbou commented Jan 20, 2025

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

@kit-ty-kate
Copy link
Copy Markdown
Member Author

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

@kit-ty-kate kit-ty-kate merged commit f80c027 into ocaml:master Jan 20, 2025
@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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opam show ocaml should not show unreleased versions

2 participants