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

Allow partial configs, optionally run just API or just analyzers #230

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

mitjat
Copy link
Contributor

@mitjat mitjat commented Nov 30, 2022

This PR allows one to provide a "partial" config.yaml, e.g. without an server: or analysis: section (which configure the API server and the analyzers, respectively), and the binary will simply not run the components without a config. Before this PR, the binary would crash.

I later discovered that it is already possible to run the binary as ./analyzer analyze or analyzer serve, which will make it read only one specific part of the config and thus also work with partial config files. Even so, it doesn't hurt to have the additional robustness provided in this PR.

Copy link
Collaborator

@pro-wh pro-wh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with that

@mitjat mitjat merged commit eaab42e into main Nov 30, 2022
@mitjat mitjat deleted the mitjat/partial-config branch November 30, 2022 21:45
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

Successfully merging this pull request may close these issues.

2 participants