Skip to content

Known Issues and Troubleshooting

Known Issues

Issue with source ~/.zshrc on builds

If you run the command source ~/.zshrc within the Dockerfile it fails.

This is due to the build/shell throwing an error when one "source" command calls another "source" (i.e. a nested source) within a file.

Workaround examples

Temporarily Disable and Re-enable $ZSH/oh-my-zsh.sh from ~/.zshrc

Comment Source Lines in ~/.zshrc:

sed -i 's/# source $ZSH\/oh-my-zsh.sh/source $ZSH\/oh-my-zsh.sh/g' ~/.zshrc

Unomment Source Lines in ~/.zshrc on all stage builds:

  sed -i 's/# source <(kubectl completion zsh)/source <(kubectl completion zsh)/g' ~/.zshrc && \
  sed -i 's/# source <(kubectl completion zsh)/source <(kubectl completion zsh)/g' ~/.bashrc && \
  sed -i 's/# source $ZSH\/oh-my-zsh.sh/source $ZSH\/oh-my-zsh.sh/g' ~/.zshrc