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

[6 of #107] move installer detection logic to implementation #126

Merged

Conversation

bollwyvl
Copy link
Contributor

This moves all of the boolean logic for each installer provider out of setup to its individual file. This 1) cuts down on the complexity in setup, and 2) makes it very tractable to add the next installer, e.g. MiniForge, etc.

On the next PR

refactor the env provider

Apply a similar treatment as this PR to the running of an installer and creating the environment. Another large chunk of setup will drop, and the boolean switches will be closer to their specific implementations. This is where the hook would become relevant for whether mamba is already provided by the installer for, e.g. config operations.

);
},
installerPath: async (inputs, options) => {
// no-op
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean @bollwyvl ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so with the bundled installer, we do nothing, as it's already installed... just update the options.

Copy link
Member

Choose a reason for hiding this comment

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

Got it.

Copy link
Member

@goanpeca goanpeca left a comment

Choose a reason for hiding this comment

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

LGTM, just one question, but not blocking the merge.

Thanks @bollwyvl 🥳 !

@goanpeca goanpeca merged commit 00ca3ac into conda-incubator:master Dec 22, 2020
@goanpeca goanpeca added this to the v2.1.0 milestone Dec 24, 2020
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