Skip to content

opam admin: enforce repository root check for all commands and add upgrade advice#6391

Merged
kit-ty-kate merged 4 commits intoocaml:masterfrom
rjbou:admin-two-point-o-check
Oct 16, 2025
Merged

opam admin: enforce repository root check for all commands and add upgrade advice#6391
kit-ty-kate merged 4 commits intoocaml:masterfrom
rjbou:admin-two-point-o-check

Conversation

@rjbou
Copy link
Copy Markdown
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 2 times, most recently 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
Copy Markdown
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
Copy Markdown
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).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

issue created #6743

@rjbou rjbou force-pushed the admin-two-point-o-check branch from 799f8b1 to 7fb6afa Compare August 26, 2025 13:19
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

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

Looks good though I have some suggestions below.
I'm also wondering if we could move the test commit to be the first one of this PR to also see the result of the first commit

@kit-ty-kate kit-ty-kate added this to the 2.5.0~alpha1 milestone Aug 26, 2025
@rjbou rjbou force-pushed the admin-two-point-o-check branch from 7fb6afa to 49e509b Compare October 16, 2025 16:51
@rjbou rjbou requested a review from kit-ty-kate October 16, 2025 16:51
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate left a comment

Choose a reason for hiding this comment

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

aside from this minor change, lgtm

@kit-ty-kate kit-ty-kate force-pushed the admin-two-point-o-check branch from fec0531 to ea51cdc Compare October 16, 2025 21:01
@kit-ty-kate
Copy link
Copy Markdown
Member

ocaml-benchmarks failed due to a lack of disk space on the test machine

@kit-ty-kate kit-ty-kate merged commit 2dd177f into ocaml:master Oct 16, 2025
43 of 44 checks passed
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