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

fix(cli): regression on --config not accepting file paths #8783

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

lucasfernog
Copy link
Member

No description provided.

@lucasfernog lucasfernog requested a review from a team as a code owner February 5, 2024 17:30
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))?;
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

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

tooling/cli/src/dev.rs Outdated Show resolved Hide resolved
tooling/cli/src/dev.rs Outdated Show resolved Hide resolved
tooling/cli/src/mobile/mod.rs Outdated Show resolved Hide resolved
@lucasfernog
Copy link
Member Author

stupid android test CI still broken..

@amrbashir amrbashir merged commit fb0d997 into dev Feb 7, 2024
18 of 19 checks passed
@amrbashir amrbashir deleted the fix/config-arg branch February 7, 2024 15:08
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