I am currently having this issue:
Command failed: /bin/sh -c ./.devcontainer/postCreateCommand.sh
which is the
"postCreateCommand": "./.devcontainer/postCreateCommand.sh",
setting from the devcontainer.json
.
But the script works when I deactivate the "postCreateCommand" and run it manually after container creation. Which made me think, that the issue might be the path to the script somehow. But that is not the case either. Since an empty script with just an echo command seems to work.
The script is the following:
echo "Installing Developer Requirements"
apt-get update && apt-get install -y man git
pip3 install -r .devcontainer/dev_pip_requirements.txt
Any ideas how to debug the "PostCreateCommand"
? The output is less than helpful and I don't want to start reducing this project into a minimum working example.
I changed git to checkout everything with linux file endings on windows. And I triple checked that the shell script has LF endings. So those should not be an issue either. (They were previously).