-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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(cli): regression on --config not accepting file paths #8783
Conversation
tooling/cli/src/build.rs
Outdated
options.config = merge_config; | ||
|
||
let config = get_config(target, options.config.as_deref())?; | ||
let config = get_config(target, options.config.as_ref().map(|c| &c.0))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we just config as an argument to the setup
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not do this overall in the codebase, get_config is cached so it's cheap if it's already been resolved, otherwise we need to pass the config around all codebase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, but config is parsed right before calling setup
so it is better to just pass the config to it, than getting from cache again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right it wasn't that complicated in the end.. thanks
stupid android test CI still broken.. |
No description provided.