-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[cmd/builder] Update builder flags precedence #5726
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5726 +/- ##
=======================================
Coverage 91.56% 91.56%
=======================================
Files 192 192
Lines 11411 11411
=======================================
Hits 10449 10449
Misses 768 768
Partials 194 194 Continue to review full report at Codecov.
|
There is a defect with this solution, closing until I sort it out. |
Please rebase to resolve conflicts. |
done |
Description:
This PR updates the builder's config initialization so that flags always take precedence over configuration files or default values.
I opted not to use the collector's resolvers/converter approach as it felt overkill for this command. This approach takes advantage of the command's existing use of global vars, which isn't the best, but is at least consistent.
Link to tracking Issue:
Fixes #5704
Testing:
Tested locally
Documentation:
I didn't update the README because it feels like flags taking precedence is the norm and the flags are already called out.