diff --git a/pkg/compose/watch.go b/pkg/compose/watch.go index bcb92f3bc52..38e01668c93 100644 --- a/pkg/compose/watch.go +++ b/pkg/compose/watch.go @@ -294,7 +294,7 @@ func maybeFileEvent(trigger types.Trigger, hostPath string, ignore watch.PathMat return nil } // always use Unix-style paths for inside the container - containerPath = path.Join(trigger.Target, rel) + containerPath = path.Join(trigger.Target, filepath.ToSlash(rel)) } return &fileEvent{