Fix initial watch sync for existing files · docker/compose@a515d44 · GitHub
Skip to content

Commit a515d44

Browse files
Fix initial watch sync for existing files
develop.watch initial sync filtered host files by the service image's creation time, so files older than the image were never copied at watch startup even though later filesystem events synced them normally. Initial sync now copies every eligible watched file, keeping the ignore and bind-mount filtering. The imageCreatedTime helper it relied on is gone, and with it the project argument that only fed it. Fixes #13725 Signed-off-by: Ben Younes <2910651+ousamabenyounes@users.noreply.github.com>
1 parent 3ee4b5c commit a515d44

2 files changed

Lines changed: 103 additions & 50 deletions

File tree

‎pkg/compose/watch.go‎

Lines changed: 12 additions & 50 deletions

‎pkg/compose/watch_test.go‎

Lines changed: 91 additions & 0 deletions

0 commit comments

Comments
 (0)