Skip to content
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

onCreateCommand: local user not correctly set-up when building devcontainer #1173

Closed
jzazo opened this issue Jul 16, 2024 · 2 comments
Closed
Labels

Comments

@jzazo
Copy link

jzazo commented Jul 16, 2024

What happened?
When I build a devcontainer image and it runs the onCreateCommand, it does not setup the local user properly. I get a warning when installing pip:

error WARNING: The scripts pip, pip3 and pip3.10 are installed in '/home/vscode/.local/bin' which is not on PATH.

It seems devpod is not sourcing the .profile file correctly when running the onCreateCommand script. I checked and /home/vscode/.profile file exists.

What did you expect to happen instead?
That /home/vscode/.profile is sourced when running the onCreateCommand script.

Local Environment:

  • DevPod Version: v0.5.16
  • Operating System: windows
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local/remote provider: ssh
@jzazo jzazo added the kind/bug label Jul 16, 2024
@pascalbreuninger
Copy link
Member

pascalbreuninger commented Jul 18, 2024

Hi @jzazo, thanks for reporting the issue. You've hit an unimplemented property of the devcontainer.json spec (userEnvProbe).
We'll implement it going forward

@pascalbreuninger
Copy link
Member

@jzazo this has been implemented with #1184 and will be available with the next release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants