Skip to content

Commit 2c876b5

Browse files
authored
Use conda env create --yes instead of --force (#5822)
conda dropped support for the `--force` flag to `conda env create`. This changes that flag name to `--yes`. See https://github.com/conda/conda/blob/main/CHANGELOG.md#2430-2024-03-12 and rapidsai/miniforge-cuda#63 for more info. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Ray Douglass (https://github.com/raydouglass) - https://github.com/jakirkham URL: #5822
1 parent 743123c commit 2c876b5

7 files changed

+9
-9
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ methods to run clang-tidy on your local machine: using Docker or Conda.
144144
1. Navigate to the repository root directory.
145145
2. Create and activate the needed conda environment:
146146
```bash
147-
conda env create --force -n cuml-clang-tidy -f conda/environments/clang_tidy_cuda-118_arch-x86_64.yaml
147+
conda env create --yes -n cuml-clang-tidy -f conda/environments/clang_tidy_cuda-118_arch-x86_64.yaml
148148
conda activate cuml-clang-tidy
149149
```
150150
3. Generate the compile command database with

ci/build_docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rapids-dependency-file-generator \
1010
--file_key docs \
1111
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
1212

13-
rapids-mamba-retry env create --force -f env.yaml -n docs
13+
rapids-mamba-retry env create --yes -f env.yaml -n docs
1414
conda activate docs
1515

1616
rapids-print-env

ci/check_style.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
2+
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
33

44
set -euo pipefail
55

@@ -11,7 +11,7 @@ rapids-dependency-file-generator \
1111
--file_key checks \
1212
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
1313

14-
rapids-mamba-retry env create --force -f env.yaml -n checks
14+
rapids-mamba-retry env create --yes -f env.yaml -n checks
1515
conda activate checks
1616

1717
# Run pre-commit checks

ci/run_clang_tidy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2023, NVIDIA CORPORATION.
2+
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
33

44
set -euo pipefail
55

@@ -11,7 +11,7 @@ rapids-dependency-file-generator \
1111
--file_key clang_tidy \
1212
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
1313

14-
rapids-mamba-retry env create --force -f env.yaml -n clang_tidy
14+
rapids-mamba-retry env create --yes -f env.yaml -n clang_tidy
1515
# Temporarily allow unbound variables for conda activation.
1616
set +u && conda activate clang_tidy && set -u
1717

ci/test_cpp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rapids-dependency-file-generator \
1818
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" \
1919
--prepend-channels "${CPP_CHANNEL}" | tee env.yaml
2020

21-
rapids-mamba-retry env create --force -f env.yaml -n test
21+
rapids-mamba-retry env create --yes -f env.yaml -n test
2222

2323
# Temporarily allow unbound variables for conda activation.
2424
set +u

ci/test_notebooks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rapids-dependency-file-generator \
1515
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" \
1616
--prepend-channels "${CPP_CHANNEL};${PYTHON_CHANNEL}" | tee env.yaml
1717

18-
rapids-mamba-retry env create --force -f env.yaml -n test
18+
rapids-mamba-retry env create --yes -f env.yaml -n test
1919

2020
# Temporarily allow unbound variables for conda activation.
2121
set +u

ci/test_python_common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ rapids-dependency-file-generator \
1616
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" \
1717
--prepend-channels "${CPP_CHANNEL};${PYTHON_CHANNEL}" | tee env.yaml
1818

19-
rapids-mamba-retry env create --force -f env.yaml -n test
19+
rapids-mamba-retry env create --yes -f env.yaml -n test
2020

2121
# Temporarily allow unbound variables for conda activation.
2222
set +u

0 commit comments

Comments
 (0)