-
Notifications
You must be signed in to change notification settings - Fork 368
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
Usage of quick_digest to track installed files doesn't work on Docker #3997
Comments
Have you tried setting |
Big thumbs up for digging up this issue too 👍 |
It does work! Thank you! This issue is now mitigated in the opam-repository CI. It might be worth adding it by default to the docker images as well. What do you think @avsm? |
cc @talex5 as well for the ocurrent images |
cc @erikmd is this relevant to Coq's images? See also coq-community/bignums#36 |
@ejgallego I believe it is |
Isn't this technically speaking a bug in Docker? |
From what I gather the issue is that nanoseconds in timestamps are not preserved, and opam doesn't like that? It's not just Docker, we had issues on CI for more than a year until we realized that the CI cache likely does not preserve nanoseconds and hence we had to set One thing that would help is for opam to detect that the timestamp is almost right, and say as much in the error/warning that it shows, and tell users about the env var as a possible fix. |
Possible scheme for this discussed last Friday which @AltGr might get to for 2.2.0 (:wink:):
|
Currently Docker doesn't store the nanosecond part of mtime of files in-between commands (see moby/moby#40004). However opam does use and store the nanosecond part and thinks the file changed and thus doesn't remove the files when instructed to.
Example (taken from the docker issue above):
This has caused problem to the CI several times (e.g. ocaml/opam-repository#14938 (comment), ocaml/opam-repository#14685 (comment), …)
The text was updated successfully, but these errors were encountered: