coder / modules

A collection of Terraform Modules to extend Coder templates.
https://registry.coder.com
Apache License 2.0
33 stars 33 forks source link

git clone module errors on empty repository #260

Open geiseri opened 5 months ago

geiseri commented 5 months ago

This is self-inflicted but the git clone module shows the git repository as optional, but if its missing it will fail and cause the workspace to show up as unhealthy. The script returns an exit code of 1 if its empty. Would it make sense if it just returned 0?

We have a common template that has that as an option, or to create a new empty project. I suppose we could break these up but I am lazy =)