In order to make it easier to use opam v2.0.0’s pre-releases on macOS, there is now a homebrew-based, quick and foolproof workflow that makes it safe and easy for you to switch from 1.2.2 to 2.0.0, and back with your previous setup if needed.
You can now try to live day to day on opam 2.0.0 with the peace of mind of being able to come back in a breeze to the solid and reliable opam 1.2.2 you know if you hit any wall.
Just a heads up, the current beta5 does not work, because brew has switched the system ocaml to 4.06.0, which breaks compilation of opam due to safe-string.
True, I’d been meaning to bring this up but somehow it slipped my mind for a long time. I finally resorted to using the official installation script when writing my blog post. The script performs a backup of the existing opam so I can switch back and forth by moving opam binary and root directory (a bit more manual than the homebrew version).
I resorted to fixing the issue for now (because the code was fortunately already there), so if it does not work please report as an issue on the bug tracker