-
Notifications
You must be signed in to change notification settings - Fork 371
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
Stale files in opam-managed directories #4207
Comments
Thanks for the report! You read well the doc, because at each install, opam does a snapshot before and after install in order to know what has been installed, and then what to remove at uninstall. Tested with opam/master & opam 2.0.7, the removal is well done
|
I am pretty sure I only started using opam 2.0 when there was the first release candidate. So the first install should have a sufficiently new opam already. But back then, the package was still in opam 1 format -- not sure if that makes any difference. |
Packages format shouldn't have any incidence on the changes files, if opam is >= 2.0. |
We'll proceed with the hunch that this is the same issue as #4419! |
Yeah that sounds plausible. |
Closing this one in favour of just keeping #4419 open for further tracking. |
From what I read in the docs, I expected opam 2 would automatically track which files are part of which package, and handle uninstallation. So when we switched to opam 2, I removed all mentions of uninstallation from our opam files.
But something has gone very wrong, because I just did a package upgrade which renamed a file, and now I have both the old and new files in
_opam/lib/coq/user-contrib/iris/heap_lang/
. This breaks everything. Looks to me like a serious bug somewhere in opam where it fails to properly clean up on package upgrades?I'll have to fix this now by manually deleting files so I can keep working, but I'll make a tarball of that switch in case you need me to take a look at some parts of it. I'm afraid I don't know how to reproduce this... here's the log from the upgrade that included the rename:
This switch is old-ish, and the coq-iris package in question has been upgraded many many times. When it was first installed, it was an opam 1 package definition installed into the opam 2 switch. Only later we upgraded the package definition to opam 2.
The text was updated successfully, but these errors were encountered: