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 upgrade keeps wanting to recompile ocaml #6028

Closed
emillon opened this issue Jun 18, 2024 · 5 comments · Fixed by #6029
Closed

opam upgrade keeps wanting to recompile ocaml #6028

emillon opened this issue Jun 18, 2024 · 5 comments · Fixed by #6029
Milestone

Comments

@emillon
Copy link
Contributor

emillon commented Jun 18, 2024

Hi,
I'm using 2.2.0~beta3 on linux.
I'm encountering an issue where opam upgrade keeps wanting to recompile ocaml and ocaml-base-compiler.

This looks like:

$ opam update
$ opam upgrade
[...]
  ↻ ocaml                       4.14.1          [upstream or system changes]
  ↻ ocaml-base-compiler         4.14.1          [upstream or system changes]
[...]
Proceed with ↻ 141 recompilations? [y/n] y
[...]
$ opam update
$ opam upgrade
[...]
  ↻ ocaml                       4.14.1          [upstream or system changes]
  ↻ ocaml-base-compiler         4.14.1          [upstream or system changes]
[...]
Proceed with ↻ 141 recompilations? [y/n] n

opam remote has just the default http remote. Here's part of the output of opam config report:

# repositories         1 (http), 10 (version-controlled) (default repo at 5d6f1cf0)

Let me know what extra info I can provide.

@OlivierNicole
Copy link

I’m experiencing the same thing.

@emillon
Copy link
Contributor Author

emillon commented Jun 18, 2024

Hum that's weird, the behaviour disappeared. So maybe it's just something that somehow required 2 rebuilds?

@kit-ty-kate
Copy link
Member

I was able to reproduce, i'm investigating

@yannl35133
Copy link

It happened to me more than twice, but I can't reproduce it indefinitely either. Maybe it's twice per update of the repository.
Also, this behaviour happens with a switch only containing the system compiler (5.2.0 in my case), which helps for testing since no compilation needs to happen.

@kit-ty-kate
Copy link
Member

This will be fixed by #6029

@kit-ty-kate kit-ty-kate added this to the 2.2.0~rc1 milestone Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants