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

condarc-file keys are overwritten #94

Closed
borchero opened this issue Oct 12, 2022 · 5 comments
Closed

condarc-file keys are overwritten #94

borchero opened this issue Oct 12, 2022 · 5 comments

Comments

@borchero
Copy link

When specifying condarc-file, this action copies the file over to a default location and then appends a couple of keys (e.g. channels). When specifying these keys in the condarc-file, they are overwritten as there are duplicate keys in the .condarc YAML.

@borchero borchero changed the title .condarc keys are overwritten condarc-file keys are overwritten Oct 12, 2022
@jonashaag
Copy link
Contributor

Do you mean that we override keys that you would like to preserve or that we override the entire condarc file?

@borchero
Copy link
Author

Imagine I have a condarc file like the following:

channels:
  - conda-forge

Then, this action will create the following ~/.condarc file:

channels:
  - conda-forge
channels:
  - conda-forge
  - nodefaults
# and some more configuration options...

I.e. depending on the keys I have in my custom condarc file, this action overrides particular configuration options.

@jonashaag
Copy link
Contributor

What are the specific options that you care about? channels?

@jonashaag
Copy link
Contributor

jonashaag commented Oct 13, 2022

What are the options that you pass to provision-with-micromamba? If I'm not mistaken we don't add nodefaults to the list of channels

@jonashaag
Copy link
Contributor

I think this is fixed in https://github.com/mamba-org/setup-micromamba.

@jonashaag jonashaag closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2023
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

No branches or pull requests

2 participants