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

opam switch remove should offer to clean up a stale directory #5827

Open
dra27 opened this issue Feb 9, 2024 · 0 comments
Open

opam switch remove should offer to clean up a stale directory #5827

dra27 opened this issue Feb 9, 2024 · 0 comments

Comments

@dra27
Copy link
Member

dra27 commented Feb 9, 2024

Somewhat related to #1636 and friends.

The messages from opam here are confusing:

C:\Devel\opam-repository5>opam switch create ocaml-5.1.1-compressed ocaml-variants.5.1.1+options
[ERROR] Directory "C:\\Users\\DRA\\AppData\\Local\\opam\\ocaml-5.1.1-compressed" already exists, please choose a different name

C:\Devel\opam-repository5>opam switch remove ocaml-5.1.1-compressed
The compiler switch ocaml-5.1.1-compressed does not exist.

The cause is a leftover directory from an aborted switch. It would be nice if we changed opam switch remove to at least offer to remove the directory; it would be really nice if opam switch create offered similarly.

@rjbou rjbou added this to the 2.3 milestone Feb 12, 2024
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

3 participants