Jim Downie
09/16/2025, 11:03 AM> WARN: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> There is a problem with your Conda configuration!
> You will need to set-up the conda-forge and bioconda channels correctly.
> Please refer to <https://bioconda.github.io/>
> The observed channel order is
> [defaults]
> but the following channel order is required:
> [conda-forge, bioconda]
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"Mahesh Binzer-Panchal
09/16/2025, 11:31 AMJim Downie
09/16/2025, 11:40 AMMahesh Binzer-Panchal
09/16/2025, 11:45 AMdefaults, I presume this is not present in a yaml for a module, but it could be that Conda setup is still setting defaults as the main channel. As far as I can see it's using miniconda which I think still has defaults in the default channel.Mahesh Binzer-Panchal
09/16/2025, 11:45 AMMahesh Binzer-Panchal
09/16/2025, 11:52 AMMahesh Binzer-Panchal
09/16/2025, 11:52 AMMahesh Binzer-Panchal
09/16/2025, 11:53 AMdefaults in the yaml?Jim Downie
09/16/2025, 11:55 AMJim Downie
09/16/2025, 11:55 AMMahesh Binzer-Panchal
09/16/2025, 11:56 AMJim Downie
09/17/2025, 8:42 AMchannels: conda-forge,spyder-ide
https://github.com/conda-incubator/setup-miniconda?tab=readme-ov-file#example-4-conda-optionsMahesh Binzer-Panchal
09/17/2025, 10:37 AMdefaults as the only channel even though it's been excluded? (i.e. excluding defaults is only valid if there are other channels to set as default)Jim Downie
09/17/2025, 10:53 AMJim Downie
09/17/2025, 10:54 AM==> /usr/share/miniconda/.condarc <==
channels:
- defaults
==> /home/runner/.condarc <==
auto_update_conda: True
auto_activate: True
notify_outdated_conda: False
changeps1: False
pkgs_dirs:
- /home/runner/conda_pkgs_dir
channels: []
always_yes: True
solver: libmamba
So there are no channels defined in the runners .condarc, so it falls back to the system condarc?Mahesh Binzer-Panchal
09/17/2025, 10:55 AMJim Downie
09/17/2025, 10:56 AMMahesh Binzer-Panchal
09/17/2025, 11:13 AMdefaults if no channels were set in the .condarc , so perhaps just adding channels: conda-forge to the action is enoughJim Downie
09/17/2025, 11:17 AMJim Downie
09/18/2025, 9:14 AM- name: Conda setup
if: contains(inputs.profile, 'conda')
uses: conda-incubator/setup-miniconda@505e6394dae86d6a5c7fbb6e3fb8938e3e863830 # v3
with:
auto-update-conda: true
conda-solver: libmamba
channels: conda-forge,bioconda
channel-priority: strict
conda-remove-defaults: true
I changed it to explicitly set up the channels we want and set the channel priority. There's also an option to use miniforge instead of miniconda that might be worth considering for lack of defaults-ness.
Would this be something worthwhile putting into the template?Mahesh Binzer-Panchal
09/18/2025, 9:18 AMbioconda out since the template should be more general as we have other fields contributing to nf-core now tooPhil Ewels
09/18/2025, 9:28 AMJim Downie
09/18/2025, 10:08 AMmoritz
09/18/2025, 10:17 AMnodefaults to channels to be explicit.Jim Downie
09/18/2025, 10:45 AMnodefaults is going to be deprecated - conda-incubator has a warning if you include it. So better to stick with conda-remove-defaults, I thinkPhil Ewels
09/18/2025, 10:07 PMconda-remove-defaults - does it work the same way, a channel name?Jim Downie
09/18/2025, 10:59 PMJim Downie
09/19/2025, 7:39 AMI think it would be useful, although leavingJust had a thought, the template currently enforces bioconda presence in theout since the template should be more general as we have other fields contributing to nf-core now toobioconda
checkCondaChannels() function - so leaving bioconda off the list will still produce the warning?Phil Ewels
09/19/2025, 7:41 AMPhil Ewels
09/19/2025, 7:41 AMPhil Ewels
09/19/2025, 7:42 AMPhil Ewels
09/19/2025, 7:42 AMPhil Ewels
09/19/2025, 7:43 AMbioconda channel in a user's local conda config?Maxime Garcia
09/19/2025, 7:46 AMcheckCondaChannels fonction with parameters, that way we can adapt it if neededMatthias De Smet
09/19/2025, 7:46 AMenvironment.yml file is configured correctly?Maxime Garcia
09/19/2025, 7:47 AMMaxime Garcia
09/19/2025, 7:47 AMMatthias De Smet
09/19/2025, 7:48 AMMaxime Garcia
09/19/2025, 7:48 AMMatthias De Smet
09/19/2025, 7:49 AMbioconda::whatever or conda-forge::dependencyMatthias De Smet
09/19/2025, 7:49 AMJames Fellows Yates
09/19/2025, 7:50 AMMahesh Binzer-Panchal
09/19/2025, 7:56 AMEdmund
09/21/2025, 10:04 AMconda.channels should be the nextflow source of truth right?
https://github.com/nf-core/nf-core-utils/issues/2Edmund
09/21/2025, 10:05 AMHow about havingWe've had that for ages, and it's already in the plugin πfonction with parameters, that way we can adapt it if neededcheckCondaChannels