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

give full explanation of recompilation reason #5776

Open
Khady opened this issue Jan 4, 2024 · 2 comments
Open

give full explanation of recompilation reason #5776

Khady opened this issue Jan 4, 2024 · 2 comments

Comments

@Khady
Copy link
Contributor

Khady commented Jan 4, 2024

↻ recompile ocurl                           20231103+git
          [upstream or system changes]

Once in a while during an opam upgrade or opam install opam gives us a message like this, telling us that a package will be recompiled. But it doesn't give the true reason why the recompilation happens, even though opam exactly knows why. It makes debugging much more troublesome that it should by hiding useful information behind a message that can't be leveraged at all.

@Khady
Copy link
Contributor Author

Khady commented Jan 4, 2024

00:00.597  STATE                  Detected changed packages (marked for reinstall): { ocurl.20231103+git }

Even with debug and verbose modes enabled, the amount of details is way too low

@kit-ty-kate
Copy link
Member

That sounds like a good idea (though it probably requires a consequential change internally and to think seriously about the UI).
As a side note, note that since #5118 (>= opam.2.2.0~alpha1), only required changes trigger a recompile so you should encounter them a lot less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants