ernestio / ernest

Ernest is a tool to define, manage and collaborate on your infrastructure
http://ernest.io/
Mozilla Public License 2.0
17 stars 6 forks source link

Composable generate and unexisting folder #860

Closed adriacidre closed 6 years ago

adriacidre commented 6 years ago

Composable generate is throwing an uncomprensible error when destination folder does not exist.

composable generate -G develop definition.yml template.yml

cloning repos:
  compliance
  mfa
  definition-mapper
  all-all-azure-connector
  all-all-fake-connector
  authorization-store
panic: could not clone repo authorization-store

goroutine 25 [running]:
github.com/r3labs/composable/build.CloneRepos.func1(0xc42001afd0, 0xf, 0xc4201a0910, 0xc4201c7730, 0x7)
    /Users/kumulo/flow/go/src/github.com/r3labs/composable/build/clone.go:27 +0x32c
created by github.com/r3labs/composable/build.CloneRepos
    /Users/kumulo/flow/go/src/github.com/r3labs/composable/build/clone.go:21 +0x9b

Make composable to gracefully fail with a comprensible error message

adriacidre commented 6 years ago

PR: https://github.com/r3labs/composable/pull/12