-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Opam "cannot revert" some things "while removing", but it is unclear why #4091
Comments
I added |
opam does some snapshot of its internals. It is used to know what has been installed, but also at removal if installed files were changed or no. In your case, those files has some changes between install and removal. I suppose that you don't use the precise tracking, so the diff is made is made according timestamps, not content. There is a know problem with mtime & docker (cf. #3997). |
Closing as duplicate of #3997. |
Thanks! I have added Having |
@RalfJung cf. #4094 (comment) for better management of this kind of issue. |
On CI, we are seeing lots of logs like this:
Unfortunately, it is entirely unclear (a) what exactly this means, and (b) why it happens. Does this mean it tried to remove the file but failed due to permissions? Does this mean it did not even try to remove the file? Does it mean it actually removed the file but something was odd? Given this is a warning (and not a fatal error), I would assume the files actually do get removed appropriately, but I cannot tell. (This is happening on CI, so interactive debugging is not possible.) Also, nothing is ever touching those files besides opam (and the CI machinery creating/restoring the cache), so it is not clear what the cause of the issue is.
Debugging is made near impossible by opam not even telling me what the actual issue is. As a wild guess, I thought maybe the CI failed to properly restore the mtime of the files in the cache, but the mtime looks fine. So maybe there's something else about these files that is not preserved by CI caching, but without any information from opam I am at a loss about what that could be.
The expected behavior would be for opam to at least explain what is happening so there is some chance of debugging the problem.
We are now seeing some issues on CI that are not reproducible locally, and opam failing to properly clean up might help explain what is going on.
The text was updated successfully, but these errors were encountered: