diff --git a/pkg/minikube/assets/addons.go b/pkg/minikube/assets/addons.go index e4c7357bfb2b..8cfc7efd1618 100644 --- a/pkg/minikube/assets/addons.go +++ b/pkg/minikube/assets/addons.go @@ -19,6 +19,7 @@ package assets import ( "fmt" "os" + "path" "path/filepath" "strconv" @@ -305,7 +306,8 @@ func addMinikubeDirToAssets(basedir, vmpath string, assets *[]CopyableFile) erro return errors.Wrap(err, "generating relative path") } rPath = filepath.Dir(rPath) - vmpath = filepath.Join("/", rPath) + rPath = filepath.ToSlash(rPath) + vmpath = path.Join("/", rPath) } permString := fmt.Sprintf("%o", info.Mode().Perm()) // The conversion will strip the leading 0 if present, so add it back