-
Notifications
You must be signed in to change notification settings - Fork 40
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
fix: skip config load for cmds that don't require it #396
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
29b1a64
to
2ffe865
Compare
@sudo-suhas Checkout this PR as well. raystack/frontier#155 We should follow a similar approach on this. cc @mabdh @StewartJingga |
@ravisuhag could you elaborate on this a bit? Are you suggesting that we should use |
47777a2
to
1f2516a
Compare
I think that as well, and also handling of missing config approach. |
1f2516a
to
d566aae
Compare
@ravisuhag @StewartJingga have done the changes as per our discussion and also updated the PR desc. |
- Load config only for 'lint' and 'run' commands. This would ensure that there are no warnings logs related to config file not being found for commands that do not require it. - In case the config file is not present, print the error but proceed with defaults. - Remove metrics/instrumentation for lint command since it does not provide any value.
d566aae
to
86fef42
Compare
In the sync review/QA for changes, @StewartJingga recommended to still print error for |
there are no warnings logs related to config file not being found for
commands that do not require it.
with defaults.
provide any value.
Closes #394