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 DIR fails on linked switch #6275

Open
btjorge opened this issue Oct 29, 2024 · 0 comments · May be fixed by #6276
Open

opam switch remove DIR fails on linked switch #6275

btjorge opened this issue Oct 29, 2024 · 0 comments · May be fixed by #6276

Comments

@btjorge
Copy link

btjorge commented Oct 29, 2024

opam switch remove DIR fails when DIR/_opam is a symbolic link (such as the result of opam switch link some-switch)

Reproduction

$ mkdir test && cd test

$ opam switch link some-switch
[...]

$ opam switch remove .
Fatal error:
/usr/local/bin/opam: "rmdir" failed on [...]/test/_opam: Not a directory

opam switch remove . should remove the symbolic link without errors.

Tested on :
opam version: 2.3.0~beta1
distribution: debian 12

@btjorge btjorge linked a pull request Oct 29, 2024 that will close this issue
@kit-ty-kate kit-ty-kate linked a pull request Oct 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants