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

append unix-style relative path when computing container target path #12145

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Sep 20, 2024

What I did
as watch computes path in container to be deleted/updated, use unix-style separator. Otherwise, we run a docker rm -rf /target/foo\bar (with a back slash) command, which will match no file and keep the original file on rename

Related issue
fixes #12113

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

@ndeloof ndeloof requested review from a team, glours and jhrotko and removed request for a team September 20, 2024 13:57
@glours glours merged commit d2b9456 into docker:main Sep 20, 2024
28 checks passed
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.

[BUG] docker compose watch does NOT handle renames properly
2 participants