Skip to content

Strip distro root prefix#58

Merged
encounter merged 1 commit intoencounter:mainfrom
AetiasHax:wsl-root
May 16, 2024
Merged

Strip distro root prefix#58
encounter merged 1 commit intoencounter:mainfrom
AetiasHax:wsl-root

Conversation

@AetiasHax
Copy link
Copy Markdown
Contributor

Building on WSL uses wsl --cd <dir> ... which expects a Windows/Linux path and doesn't work with \\wsl.localhost paths. I fixed this by stripping the prefix \\wsl.localhost\{distro} and replacing it with the root path /.

@encounter
Copy link
Copy Markdown
Owner

Thanks for the PR! I was under the impression that wsl.exe properly translated \\wsl.localhost paths. What error were you getting before this?

@encounter
Copy link
Copy Markdown
Owner

Ah, just tested and it doesn't handle it. Good catch!

@encounter encounter merged commit db726a6 into encounter:main May 16, 2024
@AetiasHax AetiasHax deleted the wsl-root branch May 16, 2024 20:46
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