Skip to content

Conversation

@D3-LucaPiombino
Copy link

@D3-LucaPiombino D3-LucaPiombino commented Mar 30, 2025

Summary of the Pull Request

Enhance volume path mount rewriter to support any arbitrary wsl distribution paths

Pull Request Checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated.

Detailed Description of the Pull Request / Additional comments

Supported syntaxes:

  • Host path (e.g. c:\users\john)
    • {windrive}:\{path} (.e.g C:\users\user\john)
    • /mnt/host/{windrive} (e.g. /mnt/host/c)

      /mnt/host will also implicitly map to of /mnt/host/c

    • /mnt/{windrive}/{path} (e.g. /mnt/c/users/john)
  • Distro path
    • \\wsl.localhost\{distro}\{path} (.e.g \\wsl.localhost\Ubuntu\user\home)
    • \\wsl$\{distro}\{path} (.e.g \\wsl$\Ubuntu\user\home)
    • /mnt/wsl/{distro}/{path} (e.g. /mnt/wls/Ubuntu/user/home)
  • Domain socket
    • //var/run/docker.sock (this is the same syntax used by docker desktop)

…ibution path and

domain sockets.

Supported syntaxes:
- `{windrive}:\{path}` (.e.g `C:\users\user\john`)
- `\\wsl.localhost\{distro}\{path}` (.e.g `\\wsl.localhost\Ubuntu\user\home`)
- `\\wsl$\{distro}\{path}` (.e.g `\\wsl$\Ubuntu\user\home`)
- `/mnt/host/{windrive}` (e.g. `/mnt/host/c`)
  - equivalent to `/mnt/host`
- `/mnt/{windrive}/{path}` (e.g. `/mnt/c/users/john`)
- `/mnt/wsl/{distro}/{path}` (e.g. `/mnt/wls/Ubuntu/user/home`)
- `//var/run/docker.sock` (this is the same syntax used by docker desktop)

Add basic unit tests.
@D3-LucaPiombino D3-LucaPiombino added the enhancement New feature or request label Mar 30, 2025
@D3-LucaPiombino D3-LucaPiombino merged commit 4a354b8 into main Mar 30, 2025
3 checks passed
@D3-LucaPiombino D3-LucaPiombino deleted the feat/enhance_mount_rewrites branch March 30, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants