Skip to content

[3.14] backport #9327#10204

Merged
Leonidas-from-XIV merged 1 commit intoocaml:3.14from
Leonidas-from-XIV:3.14-fix-6575
Mar 5, 2024
Merged

[3.14] backport #9327#10204
Leonidas-from-XIV merged 1 commit intoocaml:3.14from
Leonidas-from-XIV:3.14-fix-6575

Conversation

@Leonidas-from-XIV
Copy link
Copy Markdown
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV commented Mar 4, 2024

Backport of #9327 to 3.14.

* fix(engine): remove old target even if it is a dir

Fixes ocaml#6575

Signed-off-by: Etienne Millon <me@emillon.org>

* Add changelog entry

Signed-off-by: Etienne Millon <me@emillon.org>

* Ignore EPERM on darwin

Signed-off-by: Etienne Millon <me@emillon.org>

* Extract Fpath.unlink_status

Signed-off-by: Etienne Millon <me@emillon.org>

* Change file to directory

Signed-off-by: Etienne Millon <me@emillon.org>

* Keep exceptions

Signed-off-by: Etienne Millon <me@emillon.org>

* Use a single constructor for exn

Signed-off-by: Etienne Millon <me@emillon.org>

* Log error

Signed-off-by: Etienne Millon <me@emillon.org>

* rename Fpath.unlink to Fpath.unlink_exn

Signed-off-by: Etienne Millon <me@emillon.org>

* rename Path.unlink to Path.unlink_exn

Signed-off-by: Etienne Millon <me@emillon.org>

* rename Fpath.unlink_status to Fpath.unlink

Signed-off-by: Etienne Millon <me@emillon.org>

* rename Path.unlink_status to Path.unlink

Signed-off-by: Etienne Millon <me@emillon.org>

* do not log error if file does not exist

Signed-off-by: Etienne Millon <me@emillon.org>

---------

Signed-off-by: Etienne Millon <me@emillon.org>
@Leonidas-from-XIV Leonidas-from-XIV marked this pull request as ready for review March 4, 2024 15:05
@Leonidas-from-XIV Leonidas-from-XIV mentioned this pull request Mar 4, 2024
15 tasks
Copy link
Copy Markdown
Collaborator

@emillon emillon left a comment

Choose a reason for hiding this comment

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

👍🏻 , make sure to update the PR description to remove the draft part and the Fixes:

@Leonidas-from-XIV Leonidas-from-XIV merged commit 10e0155 into ocaml:3.14 Mar 5, 2024
@Leonidas-from-XIV Leonidas-from-XIV deleted the 3.14-fix-6575 branch March 5, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants