snapcraft remote-build fails in Windows when using a \\wsl$ path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Install snapcraft to Windows
2. Create a WSL2 instance with Ubuntu 20.04 called "Ubuntu"
3. Load the WSL2 instance and checkout a project to build
4. Navigate in PowerShell to \\wsl$\
5. Execute snapcraft remote-build in PowerShell
Output:
snapcraft remote-build is experimental and is subject to change - use with caution.
Using build ID snapcraft-
The authorization page:
(https:/
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
All data sent to remote builders will be publicly available. Are you sure you want to continue? [Y/n]: y
Packaging sources for updater...
Sorry, an error occurred in Snapcraft:
path is on mount 'C:', start on mount '\\\\wsl$\\Ubuntu'
Traceback (most recent call last):
File "snapcraft\
File "click\core.py", line 1137, in __call__
File "click\core.py", line 1062, in main
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1404, in invoke
File "click\core.py", line 763, in invoke
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "ntpath.py", line 562, in relpath
ValueError: path is on mount 'C:', start on mount '\\\\wsl$\\Ubuntu'
We would appreciate it if you created a bug report at
https:/
You can find the traceback in file 'C:\\Users\
Traceback:
Traceback (most recent call last):
File "snapcraft\
File "click\core.py", line 1137, in __call__
File "click\core.py", line 1062, in main
File "click\core.py", line 1668, in invoke
File "click\core.py", line 1404, in invoke
File "click\core.py", line 763, in invoke
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "snapcraft\
File "ntpath.py", line 562, in relpath
ValueError: path is on mount 'C:', start on mount '\\\\wsl$\\Ubuntu'