Fix edge-case bug checking path prefix in watch for bind mount volumes by matiboux · Pull Request #12640 · docker/compose (original) (raw)
What I did
I updated the condition that checks whether a bind mount volume is a prefix to a watched path.
Note: I'm not sure if the paths are cleaned already or not (especially volume.Source
), so I did not add an instruction for this. If it is not already, volume.Source
should be filepath.Clean(volume.Source)
in my code to be safe.
Related issue
Fixes #12639.
(not mandatory) A picture of a cute animal, if possible in relation to what you did
Have a photo of my cat, Pepper. 💖