-
Notifications
You must be signed in to change notification settings - Fork 365
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 recompiles unchanged package on upgrade #5814
Comments
How often does this happen? Is it linked to a call to |
We see it every day. But we runs thousands of builds per day. So it might be something uncommon which appears at scale. I don’t have the exact frequency at which it is triggered. yes we always run |
Is this on a bare metal file system or in docker? There is a known issue with timestamps in docker and it might be that |
Bare file system. @ygrek might have a reproduction. There is a suspicion that it happens because of the absence of a build section. |
We managed to debug this. The culprit was the I'll have a look at fixing that soon. |
I opened #5907 which should fix this issue for good. In the meantime the easy fix on your side is to simply remove the |
We have been seeing a weird behavior of opam, both in CI and on dev machines, where a package that hasn't seen a change in months gets recompiled once in a while by opam. It is hard to investigate, we don't see much in opam logs, even when increasing the verbosity. And we can't systematically reproduce.
The message we get looks like this. Here it is on
opam upgrade --fixup
but I believe that it happens on basicopam upgrade
too.The package definition is like this
Our repository is a local repo (with the
file:///
prefix).It happens at least with opam 2.2.0~alpha3 and 2.1.2.
This is one of the reasons behind our request for #5776.
The text was updated successfully, but these errors were encountered: