Skip to content

limactl cp doesn't support Windows absolute paths #3215

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

Closed
arixmkii opened this issue Feb 10, 2025 · 1 comment · Fixed by #3300
Closed

limactl cp doesn't support Windows absolute paths #3215

arixmkii opened this issue Feb 10, 2025 · 1 comment · Fixed by #3300

Comments

@arixmkii
Copy link
Contributor

Description

There is currently no handling of Windows paths in limactl cp. Input is simply split at ":"

path := strings.Split(arg, ":")
So, this will try to use drive letter as VM name.

I have tentative plans to tackle it as I progress with my Lima on Windows experiment, but technically writing argument parser and unit tests for it should not be blocked by work in progress state of complete Windows host support.

@afbjorklund
Copy link
Member

afbjorklund commented Feb 10, 2025

Docker handles this by looking for a local file with an absolute path, before looking for a hostname.

filepath.IsAbs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants