Skip to content

Improve the messages when a package is not up-to-date on opam upgrade#6272

Merged
rjbou merged 1 commit intoocaml:masterfrom
kit-ty-kate:improve-notuptodate-upgrade
Oct 30, 2024
Merged

Improve the messages when a package is not up-to-date on opam upgrade#6272
rjbou merged 1 commit intoocaml:masterfrom
kit-ty-kate:improve-notuptodate-upgrade

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

Fixes #6270 and also the confusing message about --verbose when it is unnecessary.

@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Oct 28, 2024
@kit-ty-kate kit-ty-kate force-pushed the improve-notuptodate-upgrade branch from f624b0b to eca8fcd Compare October 28, 2024 18:21
@kit-ty-kate kit-ty-kate requested a review from rjbou October 28, 2024 18:21
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.

It's missing test update, otherwise, lgtm!

OpamConsole.formatted_msg
"However, you may \"opam upgrade\" these packages explicitly, \
"However, you may \"opam upgrade\" these packages explicitly \
at these versions (e.g. \"opam upgrade %s\"), \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
at these versions (e.g. \"opam upgrade %s\"), \
at these versions (e.g. 'opam upgrade %s'), \

+ some underline ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the single quotes clashes with the double-quotes used prior in the same sentense. I think it's better to stay consistent

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

for underline, i'm not sure if it's necessary. The rest of the opam example commands in our codebase uses either double-quotes like here or bold, the former being used more often.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

They are both used in fact, " and '.

@kit-ty-kate kit-ty-kate force-pushed the improve-notuptodate-upgrade branch from eca8fcd to e721c73 Compare October 29, 2024 18:00
@kit-ty-kate kit-ty-kate requested a review from rjbou October 29, 2024 18:00
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.

Thanks!

@rjbou rjbou merged commit 10f0680 into ocaml:master Oct 30, 2024
@kit-ty-kate kit-ty-kate deleted the improve-notuptodate-upgrade branch October 30, 2024 13:51
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 upgrade pkg refuses to upgrade

2 participants