소스 검색

append unix-style relative path when computing container target path

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 년 전
부모
커밋
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{