-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide the option to resolve relative workspace path as symlinked path, not real path #932
Comments
|
My above comment is incorrect: |
I found one hacky way,not sure if it's a good solution https://stackoverflow.com/questions/24112452/node-dirname-process-cwd-are-reporting-actual-directory-instead-of-symlinke |
@chrmarti is there a way to use something like |
As alternative - devcontainer to provide the option/flag to set cwd explicitly. So we can just run something like |
@chrmarti I'm not sure if it matters, but I noticed in the console when I start a container:
I honestly have no idea - but just thought - is there a way to switch this mount consistency somehow and not to produce this I would like to use it only as a test Thanks |
@ThePlenkov The Dev Containers extension has a setting for that: ![]() |
Yes I saw it unfortunately it didn't help to solve my issue |
This seems to be a Docker issue: docker/for-win#14380 |
Hi,
This issue is a follow-up issue for those following issues:
So the problem is following, somehow docker CLI doesn't like to mount folders, which are mount to WSL at same time. However if this folder like
/mnt/wsl/workspace
symlinked to something like~/workspace
, then when I mount it from ~/workspace - it works. However it doesn't work in VS Code, because it still resolves path to real path.So I tried to test it just with devcontainers CLI and here is what I see:
If I run like this:
Then it doesn't work. It means that container is up and running, but workspace folder in the devctontainer is empty - there are no files. In Docker Desktop I can see that it resolves . into /mnt/wsl/worspace
However when I run the command like this:
Then devcontainer is up but also files are there. In the Docker Desktop I can see that the path is not changed.
So what I'd like CLI to do - whenever I provide a relative path like ., can it please follow cwd where I am in and not resolve it to a real path?
The text was updated successfully, but these errors were encountered: