Browse Source

append unix-style relative path when computing container target path

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 year ago
parent
commit
d2b9456137
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/watch.go

+ 1 - 1
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{