Skip to content

Commit

Permalink
fix(conda): use --yes instead of --force (#123)
Browse files Browse the repository at this point in the history
A few days ago conda 24.3.0 removed `--force` completely causing this
to no longer work. `--yes` has been around for more than a year now
and we don't really need to support old conda/miniconda so we can just
directly replace it and not bother with compatibility with older versions.

https://github.com/conda/conda/releases/tag/24.3.0
  • Loading branch information
efiop authored Apr 27, 2024
1 parent 6f7872f commit b6094f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isolate/backends/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def destroy(self, connection_key: Path) -> None:
def _run_create(self, env_path: str, env_name: str) -> None:
if self._exec_command == "conda":
self._run_conda(
"env", "create", "--force", "--prefix", env_path, "-f", env_name
"env", "create", "--yes", "--prefix", env_path, "-f", env_name
)
else:
self._run_conda("env", "create", "--prefix", env_path, "-f", env_name)
Expand Down

0 comments on commit b6094f6

Please sign in to comment.