I'm seeing channels being added twice with this action, once under:
# Applying conda configuration...
#################################
and another under:
# Applying conda configuration after update...
##############################################
This results in warnings:
C:\windows\system32\cmd.exe /D /S /C "C:\Miniconda3\condabin\conda.bat config --add channels conda-forge"
##[warning]Warning: 'conda-forge' already in 'channels' list, moving to the top
Warning: 'conda-forge' already in 'channels' list, moving to the top
C:\windows\system32\cmd.exe /D /S /C "C:\Miniconda3\condabin\conda.bat config --add channels conda-forge/label/testing"
##[warning]Warning: 'conda-forge/label/testing' already in 'channels' list, moving to the top
Warning: 'conda-forge/label/testing' already in 'channels' list, moving to the top
The problem is that these warnings appear in the top-level output of my workflow, which is kinda of annoying since they will never go away. Here's my config if it helps:
- name: Set up Python ${{ matrix.python-version }}
uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
channel-priority: strict
channels: conda-forge/label/testing,conda-forge
show-channel-urls: true
use-only-tar-bz2: true
Hi @dopplershift, thanks for the report.
Yes, it is indeed something I added to ensure things worked properly (that is why the title say after update).
I could add an extra check to avoid the warning.
Well personally I'd love to have the option to make things quiet.
Btw, I really appreciate having this action available. It saved me a ton of effort.
Most helpful comment
Well personally I'd love to have the option to make things quiet.
Btw, I really appreciate having this action available. It saved me a ton of effort.