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

Update opam repository man doc #4435

Merged
merged 4 commits into from
Jan 21, 2022
Merged

Update opam repository man doc #4435

merged 4 commits into from
Jan 21, 2022

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Nov 18, 2020

fix #4381

Copy link
Member

@dra27 dra27 left a 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."

src/client/opamCommands.ml Outdated Show resolved Hide resolved
src/client/opamCommands.ml Outdated Show resolved Hide resolved
@dra27 dra27 modified the milestones: 2.1.0~beta4, 2.1.0~beta5 Jan 7, 2021
@ocaml ocaml deleted a comment from XVilka Jan 8, 2021
@dra27
Copy link
Member

dra27 commented Jan 8, 2021

Hah, not to worry @XVilka - it appears I can delete your comment, but not the review!

@dra27 dra27 modified the milestones: 2.1.0~beta5, 2.2.0~alpha Jan 22, 2021
@kit-ty-kate kit-ty-kate merged commit 73fb279 into ocaml:master Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to remove the last repository in a switch
4 participants