Path does not exist error in WSL 2 #972
-
Brief description of your issueAttempting to validate a manifest file from inside WSL2 results in a 'path does not exist' error even though the path does exist. I'm aware that authoring packages from WSL/ Linux probably wasn't intended, but I went to the effort of setting up SSH and such to clone the repository before realising the scripts to generate manifest files were PowerShell scripts and I carried on. Steps to reproduceFrom inside a WSL instance: Setup a function to run WSL as described here: #234 (comment) Expected behaviorA notice regarding the correctness (or lack thereof) of my manifest file. Actual behaviorSee output from terminal commands above. Environment |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
@chrisRidgers I'm not sure if this is the Windows Package Manager client, the terminal, or WSL 2. I'll see if I can have someone take a look. |
Beta Was this translation helpful? Give feedback.
-
|
nevermind, I just reread the log file. winget would have to know to autocorrect that to a UNC path since cmd.exe can't. |
Beta Was this translation helpful? Give feedback.
-
|
Could you try running this command instead:
And replace I was able to successfully use a similar command above on my machine. |
Beta Was this translation helpful? Give feedback.
-
looks successful. |
Beta Was this translation helpful? Give feedback.
-
|
I'm going to convert this to discussion since it looks like this works :) |
Beta Was this translation helpful? Give feedback.
Could you try running this command instead:
winget validate --manifest \\\\wsl$\\<yourDistroName>\\home\\chris\\Projects\\Personal\\winget-pkgs\\manifests\\w\\WeakAuras\\WeakAurasCompanion\\3.3.1\\WeakAuras.WeakAurasCompanion.yamlAnd replace
<yourDistroName>with your distro name.I was able to successfully use a similar command above on my machine.