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

Split install plan into builder and struct #955

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

charliermarsh
Copy link
Member

The InstallPlan does a lot of work in the constructor, which I tend to feel is an anti-pattern. With cache refresh, it's also going to need to be made async, so it really feels like it should be a clearer method rather than an async, fallible constructor that does a bunch of IO. This PR splits into a Planner (with a build method) and a Plan.

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Jan 17, 2024
@charliermarsh charliermarsh merged commit fbe70f4 into main Jan 17, 2024
3 checks passed
@charliermarsh charliermarsh deleted the charlie/plan branch January 17, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant