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 admin: enforce repository root check for all commands and add upgrade advice #6391

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Feb 19, 2025

No description provided.

@rjbou rjbou requested a review from kit-ty-kate February 19, 2025 19:06
@rjbou rjbou force-pushed the admin-two-point-o-check branch from 8376637 to 00c4035 Compare February 19, 2025 22:01
@rjbou rjbou force-pushed the admin-two-point-o-check branch from 00c4035 to 799f8b1 Compare February 20, 2025 09:35
match repo_version_lt repo_root
(OpamVersion.of_string default_current) with
| Some v ->
OpamConsole.warning
Copy link
Member

Choose a reason for hiding this comment

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

I think opam admin should simply refuse to handle 1.2 repositories

Suggested change
OpamConsole.warning
OpamConsole.error_and_exit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It can be done that way too. It need a proper cleaning of the code if there is some that handles 1.2 backward compatibility (expect upgrade ofc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants