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

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

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

kit-ty-kate
Copy link
Member

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

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.

It's missing test update, otherwise, lgtm!

@@ -330,9 +333,11 @@ let upgrade_t
) (OpamPackage.Set.elements unopt))
);
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
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
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
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
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 '.

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.

Thanks!

@rjbou rjbou merged commit 10f0680 into ocaml:master Oct 30, 2024
42 checks passed
@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