From 62093066aa5b9296dc1aed615d916e6b3df65532 Mon Sep 17 00:00:00 2001 From: Wytamma Wirth Date: Sun, 17 Nov 2024 21:12:34 +1100 Subject: [PATCH] :bug: allow snk-cli version to be over written --- snk/nest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snk/nest.py b/snk/nest.py index d79f63b..4e1a408 100644 --- a/snk/nest.py +++ b/snk/nest.py @@ -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 ):