Skip to content
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] Creating local switch advises the --compiler option which doesn't exist #4718

Closed
MisterDA opened this issue Jun 18, 2021 · 1 comment · Fixed by #4547
Closed
Assignees
Milestone

Comments

@MisterDA
Copy link
Contributor

$ opam switch create .
[WARNING] The default compiler selection: ocaml-system >= 4.02.3 | ocaml-base-compiler
          is not compatible with the local packages found at C:/Users/user/project, and the packages don't specify an unambiguous compiler.
          You can use `--compiler` to manually select one.
You may also proceed, with no specific compiler selected. Do you want to? [Y/n] n
'C:\OCaml64\usr\local\bin\opam.exe switch create .' failed.

$ opam switch create --compiler=ocaml-variants.4.12.0+mingw64c .
opam: unknown option `--compiler'.
Usage: opam switch [OPTION]... [COMMAND] [ARG]...
Try `opam switch --help' or `opam --help' for more information.

$ opam switch create . ocaml-variants.4.12.0+mingw64c
... # ok

--compiler is not an option, it's the second (optional) argument of switch create. I haven't tested with newer versions of Opam.

@rjbou rjbou linked a pull request Jun 18, 2021 that will close this issue
@rjbou rjbou removed a link to a pull request Jun 18, 2021
@rjbou rjbou self-assigned this Jul 2, 2021
@dra27 dra27 added this to the 2.0.9 milestone Jul 2, 2021
@dra27
Copy link
Member

dra27 commented Jul 2, 2021

This is fixed in 2.1.0 (because the code was deleted!) but @rjbou is going to slip a quick correction to the message into 2.0.9 today!

@rjbou rjbou linked a pull request Jul 2, 2021 that will close this issue
2 tasks
@rjbou rjbou closed this as completed Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants