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

Make uninstallations remove changed files (and save them somewhere) #4907

Open
kit-ty-kate opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@kit-ty-kate
Copy link
Member

If for whatever reason files in a switch were changed (be it by a manual install or other means), the files are currently left untouched and opam warns the user that some files weren’t removed.

In some cases this can make ocamlfind install fail (by default it fails if the files it tries to install is already present) and the reason why would be rather cryptic to users.

To fix this, opam could just default to move the changed files to a new directory (e.g. <switch>/.opam-switch/save) and tell the user about it at the end of the (un)install process. We might want to to an exception for files in <switch>/etc however, but I’m not sure.

Related to #4891
Would partially fix #3997

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

1 participant