You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% opam remote
[...]
<><> Repository configuration for switch 4.13.1 <><><><><><><><><><><><><><><><>
1 another-repo git+https://github.com/...
2 default git+https://github.com/ocaml/opam-repository
% opam remote remove 1
Repositories removed from the selections of switch 4.13.1. Use '--all' to forget about them altogether.
% opam remote
[...]
<><> Repository configuration for switch 4.13.1 <><><><><><><><><><><><><><><><>
1 another-repo git+https://github.com/...
2 default git+https://github.com/ocaml/opam-repository
% opam remote remove another-repo
Repositories removed from the selections of switch 4.13.1. Use '--all' to forget about them altogether.
% opam remote
[...]
<><> Repository configuration for switch 4.13.1 <><><><><><><><><><><><><><><><>
1 default git+https://github.com/ocaml/opam-repository
The confusing part is that I tried to use the number instead of the remote name, but opam remote removed silently did nothing. I think that it should error out or at least warn that it did nothing (I also confused the priority with an id, that part is more on me).
The text was updated successfully, but these errors were encountered:
it's confusing, but in fact it updated your switch by removing the nonexistent repo 1 :D
More seriously, yes, we should at least check that it exists and display something.
Hi,
Here's a shell session that confused me a bit:
The confusing part is that I tried to use the number instead of the remote name, but
opam remote removed
silently did nothing. I think that it should error out or at least warn that it did nothing (I also confused the priority with an id, that part is more on me).The text was updated successfully, but these errors were encountered: