Skip to content

Commit

Permalink
🐛 allow snk-cli version to be over written
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Nov 17, 2024
1 parent c2d4693 commit 6209306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def handle_force_installation(name: str):
# The current version of Snakemake is less than the minimum version required by the workflow
snakemake_version_to_install_in_venv = f">={snakemake_min_version}"
min_snk_cli_version = self.check_for_snk_cli_min_version(workflow_path)
if min_snk_cli_version is not None:
snk_cli_in_deps = len([dep for dep in dependencies if "snk_cli" in dep]) > 0
if min_snk_cli_version is not None and not snk_cli_in_deps:
if parse_version(self._current_snk_cli_version) < parse_version(
min_snk_cli_version
):
Expand Down

0 comments on commit 6209306

Please sign in to comment.