Skip to content

Commit

Permalink
Always use *nix-style paths in sync destinations.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 19, 2019
1 parent ffdfd72 commit 883faac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/skaffold/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ func intersect(context string, syncMap map[string]string, files []string, workin
}

// Convert relative destinations to absolute via the workingDir.
if filepath.IsAbs(dst) {
// Note that we always use Unix-style paths in our destination.
if dst[0] == '/' {
dst = filepath.ToSlash(dst)
} else {
dst = filepath.ToSlash(filepath.Join(workingDir, dst))
Expand Down

0 comments on commit 883faac

Please sign in to comment.