1
0
Эх сурвалжийг харах

append unix-style relative path when computing container target path

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 жил өмнө
parent
commit
d2b9456137
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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{