Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows, when the user name contains spaces, the command to copy the Kind binary is failing #2653

Closed
themr0c opened this issue May 26, 2023 · 1 comment · Fixed by #2675
Assignees
Labels

Comments

@themr0c
Copy link
Contributor

themr0c commented May 26, 2023

Bug description

On Windows, when the user name contains spaces, the command to copy the Kind binary is failing because it is missing quotes to protect the spaces in the path name.

Operating system

Windows 11 Pro

Version

1.0.x

Steps to reproduce

  1. Work with a user name containing spaces, such as Podman Desktop User
  2. Click on Kind
  3. Download: OK.
  4. Reply yes to system wide install.
  5. The install command failed. Unable to install kind binary: Error: Command failed: copy C:\Users\Podman Desktop User\.local\share\containers\podman-desktop\extensions-storage\kind\kind-windows-amd64.exe C:\Users\Podman Desktop User\AppData\Local\Microsoft\WindowsApps\kind.exe
  6. The link in the status bar to install Kind is gone.
  7. I cannot create a Kind cluster.
    I tried the copy command: it is missing some " quotes to protect the spaces in the path.

Relevant log output

Command failing:


copy C:\Users\Podman Desktop User\.local\share\containers\podman-desktop\extensions-storage\kind\kind-windows-amd64.exe C:\Users\Podman Desktop User\AppData\Local\Microsoft\WindowsApps\kind.exe

Command successful:

copy "C:\Users\Podman Desktop User\.local\share\containers\podman-desktop\extensions-storage\kind\kind-windows-amd64.exe" "C:\Users\Podman Desktop User\AppData\Local\Microsoft\WindowsApps\kind.exe"


### Additional context

_No response_
@themr0c themr0c added the kind/bug 🐞 Something isn't working label May 26, 2023
@benoitf
Copy link
Collaborator

benoitf commented May 26, 2023

I guess a command is not using runCliCommand and https://github.com/containers/podman-desktop/blob/main/extensions/kind/src/util.ts#L106

lstocchi added a commit to lstocchi/podman-desktop that referenced this issue May 29, 2023
Signed-off-by: lstocchi <lstocchi@redhat.com>
@lstocchi lstocchi self-assigned this May 29, 2023
lstocchi added a commit that referenced this issue May 30, 2023
Signed-off-by: lstocchi <lstocchi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants