Skip to content

Version 2: Stop writing to ~/.condarc and remove some options #103

@jonashaag

Description

@jonashaag

The current interface has a bunch of problems:

Some of the problems with channels have been inherited from setup-miniconda but I don't think it's worth staying compatible (we're not compatible in other ways anyways).

I don't think we should be using channels in the first place, with one exception. We should be specifying channels in the environment.yml and in a .condarc. You want to be able to install from environment.yml outside of CI anyways. I'm not sure why we set channel_priority: strict but I think this one should also not be CI specific, so set in .condarc. The exception for a valid use case for channels being if you don't have an environment.yml.

My suggestion is as follows:

  • Remove the channels option.
  • Don't set the channel_priority option and remove the channel-priority option.
  • For the special case of environmnent-file: false use channels: [conda-forge]. Other channels are not supported in that case (must create an environment.yml file or use a condarc-file instead).
  • Stop writing to ~/.condarc. (Maybe keep the condarc-file -> ~/.condarc copying.)
  • Remove the condarc-options option? We could also keep it but make it mutually exclusive with condarc-file.

@wolfv @pavelzw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions