Skip to content

Commit 0628458

Browse files
committed
fix: apply zsh shell in postCreateCommand
- fix ``/bin/sh: 1: source: not found`` error in devcontainer terminal by forcing zsh shell for ``source .venv/bin/activate``
1 parent 16ede07 commit 0628458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
},
2424
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
2525
"workspaceFolder": "/workspace",
26-
"postCreateCommand": "uv venv && source .venv/bin/activate && uv sync --all-extras"
26+
"postCreateCommand": "zsh -c 'uv venv && source .venv/bin/activate && uv sync --all-extras'"
2727
}

0 commit comments

Comments
 (0)