-
Notifications
You must be signed in to change notification settings - Fork 372
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
Opam 2.0.8 doesn't pick new compiler variants when updating a repo #4558
Comments
My guess is that the trouble comes from the slightly tricky interface of the
Where As I mentionned before, I agree that this interface gets confusing and should be improved, but I am not sure of how. As for removing the
Assuming you did use the The above was all on 2.1 so I don't think there has been big changes since 2.0 ? |
The most confusing part is probably that notion of "default selection" for repositories. Best if we could remove that altogether and:
As a more backwards-compatible mid-ground, we could make the default undefined initially, triggering the above behaviour, but still allow to define it explicitely. But ugh yet more complexity... Additional note: |
related #4381 |
It looks as though there's nothing different here between 2.0 and 2.1. Discussed today: possible iteration on @AltGr's suggestion might be to have a single default repository and no longer have a list of default repositories. So you can always add repositories to the global list, but to select anything other than one default repository when creating a switch you must use --repos. |
Hello,
I wanted to add an ocaml-variant with a patched compiler, so I forked opam-repository, added my variant, and added the repo to my opam install.
However, it seems that opam doesn't pick the new ocaml-variants from the repository. Worse: if I delete the default repo and re-add it, all the variants are lost and it becomes impossible to create new switches.
opam init --reinit
doesn't fix the problem.As suggested by @AltGr, selecting a repo when creating a switch works:
opam switch create --repos=...
.@kit-ty-kate noticed that opam 2.1 has the "expected" behaviour.
The text was updated successfully, but these errors were encountered: