{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/opam/issues/3292","repository_url":"https://api.github.com/repos/ocaml/opam","labels_url":"https://api.github.com/repos/ocaml/opam/issues/3292/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/3292/comments","events_url":"https://api.github.com/repos/ocaml/opam/issues/3292/events","html_url":"https://github.com/ocaml/opam/issues/3292","id":313998016,"number":3292,"title":"opam2-rc1: unable to install switches from non-default repositories?","user":{"login":"gasche","id":426238,"avatar_url":"https://avatars2.githubusercontent.com/u/426238?v=4","gravatar_id":"","url":"https://api.github.com/users/gasche","html_url":"https://github.com/gasche","followers_url":"https://api.github.com/users/gasche/followers","following_url":"https://api.github.com/users/gasche/following{/other_user}","gists_url":"https://api.github.com/users/gasche/gists{/gist_id}","starred_url":"https://api.github.com/users/gasche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasche/subscriptions","organizations_url":"https://api.github.com/users/gasche/orgs","repos_url":"https://api.github.com/users/gasche/repos","events_url":"https://api.github.com/users/gasche/events{/privacy}","received_events_url":"https://api.github.com/users/gasche/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-13T07:32:45Z","updated_at":"2018-04-13T11:13:58Z","closed_at":"2018-04-13T11:13:58Z","author_association":"MEMBER","body":"In order to try the latest ocaml-multicore releases, I did\r\n\r\n```bash\r\n$ opam repository add multicore git+https://github.com/ocamllabs/multicore-opam.git\r\n```\r\n\r\nwhich seems to make the packages available as expected:\r\n\r\n```bash\r\n$ opam show ocaml-variants -f available-versions | grep -o \"\\\\S*+multicore\"\r\n4.02.2+multicore\r\n4.04.2+multicore\r\n4.06.1+multicore\r\n```\r\n\r\nhowever, `opam switch create` apparently cannot find these switches:\r\n\r\n```bash\r\n$ opam switch list-available | grep multicore\r\n# no output\r\n\r\n$ opam switch create multicore ocaml-variants.4.06.1+multicore\r\n[ERROR] No compiler matching 'ocaml-variants.4.06.1+multicore' found,\r\n        use 'opam switch list-available' to see what is available,\r\n        or use '--packages' to select packages explicitely.\r\n\r\n$ opam install ocaml-variants.4.06.1+multicore\r\nYour request can't be satisfied:\r\n  - no matching version\r\n\r\nNo solution found, exiting\r\n```\r\n\r\nIs there something transient that is wrong with my opam2-rc1 setup? Can other people reproduce the problem with this switch description?"},"comment":{"url":"https://api.github.com/repos/ocaml/opam/issues/comments/381104203","html_url":"https://github.com/ocaml/opam/issues/3292#issuecomment-381104203","issue_url":"https://api.github.com/repos/ocaml/opam/issues/3292","id":381104203,"user":{"login":"gasche","id":426238,"avatar_url":"https://avatars2.githubusercontent.com/u/426238?v=4","gravatar_id":"","url":"https://api.github.com/users/gasche","html_url":"https://github.com/gasche","followers_url":"https://api.github.com/users/gasche/followers","following_url":"https://api.github.com/users/gasche/following{/other_user}","gists_url":"https://api.github.com/users/gasche/gists{/gist_id}","starred_url":"https://api.github.com/users/gasche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasche/subscriptions","organizations_url":"https://api.github.com/users/gasche/orgs","repos_url":"https://api.github.com/users/gasche/repos","events_url":"https://api.github.com/users/gasche/events{/privacy}","received_events_url":"https://api.github.com/users/gasche/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T11:13:58Z","updated_at":"2018-04-13T11:13:58Z","author_association":"MEMBER","body":"Thanks! When doing `opam repo`, the following warning should have told me that something was going on, but I didn't realize:\r\n\r\n```\r\n[NOTE] These are the repositories in use by the current switch. Use '--all' to see all configured repositories.\r\n```\r\n\r\nI think that the new warning would have been very helpful, and I can't think of any other concrete suggestion to improve things, so I'm moving to close this issue. Thanks again for the prompt user support."}}
{"actor":{"display_login":"gasche"}}