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-compiler does not detect the version correctly #8

Open
kit-ty-kate opened this issue Nov 6, 2020 · 3 comments
Open

opam-compiler does not detect the version correctly #8

kit-ty-kate opened this issue Nov 6, 2020 · 3 comments

Comments

@kit-ty-kate
Copy link

Using opam-compiler 0.1.1:

$ opam compiler create kit-ty-kate:4.12
Processing: [ocaml-variants.4.13.0+trunk+no-flat-float-array: git]
....

In this case I would have expected 4.12.0 instead of 4.13.0. You can detect this using the VERSION file.
Furthermore I'm not sure why +no-flat-float-array is used by default, I would have expected only +trunk

@emillon
Copy link
Collaborator

emillon commented Nov 9, 2020

yes, I noticed that too 🤔 . I think it's picking the highest version opam knows about. this might be cosmetic though, I'm not sure it's actually setting this version number, but some investigation it's necessary

@avsm
Copy link

avsm commented Nov 20, 2020

It's not installing it:

$ opam compiler create ocaml/ocaml:4.12
[ocaml-variants.4.12.0+trunk+no-flat-float-array] synchronised from git+https://github.com/ocaml/ocaml#4.12
ocaml-variants is now pinned to git+https://github.com/ocaml/ocaml#4.12 (version 4.12.0+trunk)


The following actions will be performed:
  ∗ install base-bigarray  base
  ∗ install base-threads   base
  ∗ install base-unix      base
  ∗ install ocaml-variants 4.12.0+trunk*
  ∗ install ocaml-config   1
  ∗ install ocaml          4.12.0
===== ∗ 6 =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫 
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
∗ installed ocaml-variants.4.12.0+trunk
∗ installed ocaml-config.1
∗ installed ocaml.4.12.0
Done.
# Run eval $(opam env) to update the current shell environment

or at least, I seem to have a 4.12.0 with vanilla configure options now (as desired)

@emillon
Copy link
Collaborator

emillon commented Feb 11, 2021

Need to pinpoint this more precisely, but as a data point on a different configuration this is displaying another version number, which I suspect is the highest one too:

$ opam compiler create ocaml:4.12 --switch ocomp412
Processing: [ocaml-variants.4.12.0+beta2+msvc64: git]

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

No branches or pull requests

3 participants