Open bscott opened 3 years ago
@bscott That is expected as they are not included. Are you requesting them be added? We take care to be judicious about what is added since the more that is there, the less space users will have in the codespace. Homebrew in particular is surprisingly huge.
No problem
I thought they were included hence why I created the issue but it would be nice if they were added so the experience doesn't feel broken when we launch a new code space and immediately see these errors in the terminal.
@bscott Got it. I assume these references are coming from your dotfiles, correct?
You could install Linux brew if you detect it is missing in your dotfiles:
if ! type brew > /dev/null 2>&1; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# VS Code's default terminal on Linux is interactive, not a login shell, so update bashrc/zshrc
echo 'if [[ "${PATH}" != *"/home/linuxbrew/.linuxbrew/bin"* ]]; then export PATH="/home/linuxbrew/.linuxbrew/sbin:/home/linuxbrew/.linuxbrew/bin:${PATH}"; fi' | tee -a $HOME/.zshrc >> $HOME/.bashrc
fi
The second line is because VS Code defaults to a non-login shell for Linux (for historic reasons), so ~/.profile won't be sourced.
https://github.com/microsoft/vscode-dev-containers/tree/main/containers/codespaces-linux
Steps to Reproduce: