Skip to content

Commit 4d15d4c

Browse files
Remove use of nodefaults channel, use conda-remove-defaults: true instead
This change is prompted by CI warning: ``` 'nodefaults' channel detected: will remove 'defaults' if added implicitly. In the future, 'nodefaults' as a way of removing 'defaults' won't be supported. Please set 'conda-remove-defaults' = 'true' to remove this warning. ```
1 parent 34ae129 commit 4d15d4c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ jobs:
9191
miniforge-variant: Miniforge3
9292
miniforge-version: latest
9393
activate-environment: build
94-
channels: conda-forge,nodefaults
94+
channels: conda-forge
95+
conda-remove-defaults: true
9596
python-version: ${{ matrix.python }}
9697

9798
- name: Install conda build
@@ -263,7 +264,8 @@ jobs:
263264
- uses: conda-incubator/setup-miniconda@v3
264265
with:
265266
miniforge-version: latest
266-
channels: conda-forge,nodefaults
267+
channels: conda-forge
268+
conda-remove-defaults: true
267269
activate-environment: ${{ env.TEST_ENV_NAME }}
268270
python-version: ${{ matrix.python }}
269271

@@ -800,7 +802,8 @@ jobs:
800802
with:
801803
run-post: false
802804
channel-priority: "disabled"
803-
channels: conda-forge,nodefaults
805+
channels: conda-forge
806+
conda-remove-defaults: true
804807
python-version: '3.11'
805808

806809
- name: Install anaconda-client

0 commit comments

Comments
 (0)