Skip to content

feat(windows): support windows by converting windows paths to wsl paths#289

Open
Swapnanil-Gupta wants to merge 1 commit into
mainfrom
fix-wsl-paths
Open

feat(windows): support windows by converting windows paths to wsl paths#289
Swapnanil-Gupta wants to merge 1 commit into
mainfrom
fix-wsl-paths

Conversation

@Swapnanil-Gupta

@Swapnanil-Gupta Swapnanil-Gupta commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

  • Adds a WithWindowsHostPathTranslation modifier.
  • When this modifier is set, rewrite Windows drive-letter paths (e.g. C:\Users\foo) in command arguments to their WSL2 equivalents (e.g. /mnt/c/Users/foo) before executing nerdctl commands.

Note:

Testing done:

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Swapnanil-Gupta Swapnanil-Gupta deleted the fix-wsl-paths branch July 2, 2026 21:37
@Swapnanil-Gupta Swapnanil-Gupta restored the fix-wsl-paths branch July 2, 2026 21:38
@Swapnanil-Gupta Swapnanil-Gupta changed the title fix: convert windows paths to wsl paths feat(windows): support windows by converting windows paths to wsl paths Jul 2, 2026
@Swapnanil-Gupta Swapnanil-Gupta marked this pull request as ready for review July 2, 2026 22:35
@Swapnanil-Gupta Swapnanil-Gupta requested a review from a team as a code owner July 2, 2026 22:35
Comment thread option/wsl_path.go Outdated
ayush-panta
ayush-panta previously approved these changes Jul 6, 2026
Comment thread option/wsl_path.go
@ayush-panta ayush-panta self-requested a review July 6, 2026 19:49
@ayush-panta ayush-panta dismissed their stale review July 6, 2026 19:50

Accidental approval

@ayush-panta

Copy link
Copy Markdown
Contributor

Just fix linter, then should be good to go

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants