Skip to content

Commit

Permalink
Swaps --force for --yes for conda commands
Browse files Browse the repository at this point in the history
- Missed the memo, `--force` was marked for deprecation and finally was
  deprecated
  • Loading branch information
schuylermartin45 committed Mar 18, 2024
1 parent 5c45283 commit 27e6115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ runs:
source $CONDA/etc/profile.d/conda.sh
conda init bash
sed -i 's/- python >=3.*$/- python ${{ inputs.python-version }}.*/' environment.yaml
conda env create -f environment.yaml --name conda-recipe-manager --force
conda env create -f environment.yaml --name conda-recipe-manager --yes
conda run --name conda-recipe-manager pip install .
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ install: clean ## install the package to the active Python's site-packages
pip install .

environment: ## handles environment creation
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --force
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
conda run --name $(CONDA_ENV_NAME) pip install .

dev: clean ## install the package's development version to a fresh environment
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --force
conda env create -f environment.yaml --name $(CONDA_ENV_NAME) --yes
conda run --name $(CONDA_ENV_NAME) pip install -e .
$(CONDA_ACTIVATE) $(CONDA_ENV_NAME) && pre-commit install

Expand Down

0 comments on commit 27e6115

Please sign in to comment.