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

Unhelpful error message on parsing all recipes in directory #425

Open
bsushmith opened this issue Oct 19, 2022 · 0 comments
Open

Unhelpful error message on parsing all recipes in directory #425

bsushmith opened this issue Oct 19, 2022 · 0 comments

Comments

@bsushmith
Copy link
Member

Describe the bug
When running recipes inside a directory, meteor error messages are not helpful. Even though there is a recipe present, because of recipe errors, meteor returns back no recipes in folder.

To Reproduce
Steps to reproduce the behavior:

  1. create sample recipe which has some issue
  2. run the meteor command at directory level
  3. See error

Expected behavior
running meteor at directory should return all errors for each individual recipe in folder

Screenshots

/tmp # l
total 4
-rw-r--r--    1 root     root           706 Oct 19 07:31 sample-bigquery-recipe.yaml

/tmp # meteor lint /tmp
2022/10/19 07:47:01 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
No recipe found in [/tmp]

Use 'meteor gen recipe' to generate a new recipe.

/tmp # meteor run /tmp
2022/10/19 07:47:14 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
2022/10/19 07:47:14 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
! No recipe found in [/tmp]

/tmp # meteor lint /tmp/sample-bigquery-recipe.yaml
2022/10/19 07:47:29 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
Usage:  meteor lint [path] [flags]
yaml: line 12: could not find expected ':'

/tmp # meteor run /tmp/sample-bigquery-recipe.yaml
2022/10/19 07:47:35 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
2022/10/19 07:47:35 unable to find config file, loading from env and defaults: open ./meteor.yaml: no such file or directory
Usage:  meteor run <path>|<name> [flags]

Flags:
  -c, --config string   file path for agent level config (default "./meteor.yaml")
      --var string      Path to Config file with env variables for recipe

yaml: line 12: could not find expected ':'

Additional context:
Version: 0.3.1

@ravisuhag ravisuhag changed the title unhelpful error message on parsing all recipes in directory Unhelpful error message on parsing all recipes in directory Sep 24, 2023
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

2 participants
@bsushmith and others