-
Notifications
You must be signed in to change notification settings - Fork 358
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
Update opam repository man doc #4435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-worded the message text, but I don't think is sufficient - the 2.0 behaviour here is really surprising. On my opam root, which has two default repositories, this means that if you remove the last repo from a switch's selection then you suddenly have two repos added!
I think this also be displayed as a warning when it happens - i.e. if OpamSwitchState.update_repositories
has restored the list to the default then the "Repositories removed from the selections of switch %s." message should also be "There are no repositories selected, so the selections have been restored to the default selection."
Hah, not to worry @XVilka - it appears I can delete your comment, but not the review! |
Co-authored-by: David Allsopp <[email protected]>
fix #4381