You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @HFR1994, how are you launching devpod desktop? I am by no means a windows expert but I am not sure if environment variables in ~/.bashrc are expected to be sourced by desktop applications. If you launch devpod desktop from a terminal, does the environment variable work?
What happened?
I created a dynamic environment variable inside my WSL2 installation with:
I have tried the following configurations inside my devcontainer.json:
and
But the variable is always empty inside the container.
What did you expect to happen instead?
When I run the following command inside the devcontainer, I should get a similar result:
Which has the same value if I run the same command in WSL2.
How can we reproduce the bug? (as minimally and precisely as possible)
My
devcontainer.json
:My
Dockerfile
:Run in WSL:
Once executed the devcontainer, try to run:
It should come back empty
Local Environment:
DevPod Provider:
Anything else we need to know?
If I add the variable to Powershell using :
and run it using
It works! It seems that the GUI is not picking the variables inside
~/.bashrc
The text was updated successfully, but these errors were encountered: