Skip to content

Commit d1138ec

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 0a72b93 commit d1138ec

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/conda-package.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ jobs:
8989
miniforge-variant: Miniforge3
9090
miniforge-version: latest
9191
activate-environment: build
92-
channels: conda-forge,nodefaults
92+
channels: conda-forge
93+
conda-remove-defaults: true
9394
python-version: ${{ matrix.python }}
9495

9596
- name: Cache conda packages
@@ -242,9 +243,9 @@ jobs:
242243
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
243244
- uses: conda-incubator/setup-miniconda@v3
244245
with:
245-
auto-update-conda: true
246-
conda-build-version: '*'
247-
miniconda-version: 'latest'
246+
miniforge-version: latest
247+
channels: conda-forge
248+
conda-remove-defaults: true
248249
activate-environment: ${{ env.TEST_ENV_NAME }}
249250
python-version: ${{ matrix.python }}
250251

@@ -736,7 +737,8 @@ jobs:
736737
with:
737738
run-post: false
738739
channel-priority: "disabled"
739-
channels: conda-forge,nodefaults
740+
channels: conda-forge
741+
conda-remove-defaults: true
740742
python-version: '3.11'
741743

742744
- name: Install anaconda-client

0 commit comments

Comments
 (0)