Skip to content

Commit

Permalink
fix: Fix snakedeploy hanging forever (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxwiegand authored Oct 16, 2024
1 parent 07f2876 commit f6d1ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakedeploy/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_pkg_versions(conda_env_path):
self.exec_conda(f"list --json --prefix {tmpdir}").stdout
)
pkg_versions = {pkg["name"]: pkg["version"] for pkg in results}
self.exec_conda(f"env remove --prefix {tmpdir}")
self.exec_conda(f"env remove --prefix {tmpdir} -y")
return pkg_versions, results

logger.info("Resolving prior versions...")
Expand Down Expand Up @@ -292,7 +292,7 @@ def update_pinning(self, conda_env_path, pr=None):
is_updated=old_content is not None,
msg=msg,
)
self.exec_conda(f"env remove --prefix {tmpdir}")
self.exec_conda(f"env remove --prefix {tmpdir} -y")

def exec_conda(self, subcmd):
return sp.run(
Expand Down

0 comments on commit f6d1ce5

Please sign in to comment.