Skip to content

Initializing a Turbine App without all the pre-requisites fails with unhelpful message #477

Description

@ahmeroxa

Is your feature request related to a problem? Please describe.
initializing a turbine app fails with unhelpful messages if you are missing some pre-requisites (such as python, turbine-py, git etc...).

An example of this would be running meroxa apps init myapp --lang go without having Go installed fails with the message:

Error: template: pattern matches no files: `template\.gitignore` and some broken terminal formatting.

Similar unhelpful errors are produced with initializing other languages without sdk/runtimes or if you don't have Git installed.

Screen Shot 2022-10-13 at 9 27 06 AM

Describe the solution you'd like
Before actually trying to initialize the turbine app, we should check for pre-requisites and return helpful messages on what's missing. At a minimum we should verify that Git is installed and require that the language specific turbine lib returns a message describing the failure.

Describe alternatives you've considered
Introduce a separate command (previously discussed something like meroxa doctor) and on error output that the user should run that command to troubleshoot.

Additional context
Additionally running the commands with --debug doesn't produce any additional logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions