Open Khady opened 1 week ago
Are you able to reproduce? I wasn't able to reproduce locally. Upgrade mechanism is supposed to remove only non well formed switches (missing switch-config file for global registered switches), so it shouldn't delete your empty switches (empty switches have a config file, it's just empty of packages).
If you still have the issue, can you share the content of /home/me/.opam/ahrefs-placeholder
and the /home/me/.opam/ahrefs-placeholder/.opam-switch/switch-config
if present.
I had a switch
ahrefs-placeholder
created withopam sw create ahrefs-placeholder --empty
using an "old" alpha or beta of 2.2 (sorry I can't remember which version exactly). It was fine while using 2.2.0~beta2.While running opam 2.2.0~rc1 for the first time, I had a warning telling me that my empty switch doesn't exist anymore
The removal doesn't seem complete though, as if I try to create the switch again I get an error
This isn't a big problem as we have this empty repo for legacy reasons and creating it again is simple. But reporting anyway as it seems to be a weird behavior.