wasmCloud/wash

[BUG] `wash new` fails if `git` isn't installed

brooksmtownsend opened this issue · 0 comments

Describe the bug
I found a pretty uncommon scenario, but a confusing one, if you run wash new and attempt to generate a project it will fail if git isn't installed. This isn't unexpected as we use git to clone the project templates repository, but the error message is nondescriptive:

No such file or directory (os error 2)

To Reproduce
Steps to reproduce the behavior:

docker run --rm -it ubuntu:22.04
# in container
apt update; apt install curl -y
curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.deb.sh | bash
apt install wash
wash new actor hello --template-name hello

Expected behavior
In this scenario, I expect wash to output a message along the lines of "Could not retrieve project templates, git not installed" so the user knows to install git

Screenshots
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information) **

  • OS: [e.g. Linux, MacOS] Linux
  • Shell [e.g. bash, zsh, powershell] bash
  • wash Version [e.g. 0.2.0] v0.18.0