我看到通过此操作添加了两次渠道,一次是在以下渠道进行:
# Applying conda configuration...
#################################
下一个:
# Applying conda configuration after update...
##############################################
这将导致警告:
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
问题是这些警告出现在我的工作流的顶级输出中,这有点烦人,因为它们永远不会消失。 这是我的配置,如果有帮助的话:
- name: Set up Python ${{ matrix.python-version }}
uses: goanpeca/setup-miniconda<strong i="15">@v1</strong>
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
您好@dopplershift ,感谢您的举报。
是的,确实是我添加的内容,以确保一切正常(这就是标题在更新后显示的原因)。
我可以添加额外的检查以避免警告。
好吧,我个人很想选择让事情安静一些。
顺便说一句,我非常感谢有此操作。 它救了我一吨的努力。
最有用的评论
好吧,我个人很想选择让事情安静一些。
顺便说一句,我非常感谢有此操作。 它救了我一吨的努力。