Update cmd/minikube/cmd/image.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
pull/15074/head
Товарищ программист 2023-06-10 21:30:26 +08:00 committed by GitHub
parent 76950ebdf0
commit 0bb29fe744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ var buildImageCmd = &cobra.Command{
}
}
if runtime.GOOS == "windows" && strings.Contains(dockerFile, "\\") {
// if dockerFile is a DOS path, and user did not explicitly forbid this conversion, translate it into UNIX path
// if dockerFile is a DOS path, translate it into UNIX path
// because we are going to build this image in UNIX environment
out.String("minikube detects that you are using DOS-style path %s. minikube will convert it to UNIX-style by replacing all \\ to /", dockerFile)
dockerFile = strings.ReplaceAll(dockerFile, "\\", "/")