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

postCreateCommand from devcontainer.json failed with /bin/sh: 1: source: not found #223

Open
s3bc40 opened this issue Mar 6, 2025 · 0 comments

Comments

@s3bc40
Copy link
Contributor

s3bc40 commented Mar 6, 2025

At the end of the devcontainer configuration I get:

Using CPython 3.13.0
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
/bin/sh: 1: source: not found
[5871 ms] postCreateCommand from devcontainer.json failed with exit code 127. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

It seems that "postCreateCommand": "uv venv && source .venv/bin/activate && uv sync --all-extras" is the origin of this error /bin/sh: 1: source: not found.

Consequences:

  • uv sync --all-extras is never reached and we have to do it afterwards

I have a commit in my fork that solve the issue and install everything -> 7d91df1

"postCreateCommand": "zsh -c 'uv venv && source .venv/bin/activate && uv sync --all-extras'"

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

No branches or pull requests

1 participant