Skip to content

Remove linked switches without failing#6276

Merged
kit-ty-kate merged 2 commits intoocaml:masterfrom
btjorge:remove-linked-switches
Nov 14, 2024
Merged

Remove linked switches without failing#6276
kit-ty-kate merged 2 commits intoocaml:masterfrom
btjorge:remove-linked-switches

Conversation

@btjorge
Copy link
Copy Markdown
Contributor

@btjorge btjorge commented Oct 29, 2024

Proposed fix and reproduction test for #6275

@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Oct 29, 2024
@rjbou rjbou self-requested a review October 29, 2024 16:52
@rjbou rjbou force-pushed the remove-linked-switches branch from 66d5fc8 to b39d97d Compare October 29, 2024 17:31
@rjbou rjbou requested a review from kit-ty-kate October 29, 2024 17:32
Copy link
Copy Markdown
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I've updated the test (split the commit into before/after), and updated changes too.
I kept a commit as fixup commit to propose an alternative implementation, in order to factorise the check done in remove_dir_t and remove_dir.

@kit-ty-kate kit-ty-kate linked an issue Oct 29, 2024 that may be closed by this pull request
@kit-ty-kate kit-ty-kate requested a review from rjbou October 29, 2024 20:25
btjorge and others added 2 commits November 14, 2024 21:29
Fix OpamSystem.remove_dir to not fail when directory is a symbolic link.

Co-authored-by: Raja Boujbel <raja.boujbel@ocamlpro.com>
@kit-ty-kate kit-ty-kate force-pushed the remove-linked-switches branch from bc09e4a to 5c28606 Compare November 14, 2024 21:30
@kit-ty-kate
Copy link
Copy Markdown
Member

Thanks a lot!

@kit-ty-kate kit-ty-kate merged commit a19d003 into ocaml:master Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opam switch remove DIR fails on linked switch

3 participants