Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahmeroxa opened this issue Oct 13, 2022 · 0 comments

Comments

@ahmeroxa
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant