Skip to content

Commit

Permalink
refact: Try removing org_path_match
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Dec 4, 2024
1 parent 9c9c66a commit f60a8a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import os
import re
import shutil
import tempfile
from pathlib import Path
Expand Down Expand Up @@ -965,11 +964,7 @@ def update_linked_components(
def manage_changes_in_linked_components(self, component, modules_to_update, subworkflows_to_update):
"""Check for linked components added or removed in the new subworkflow version"""
if self.component_type == "subworkflows":
org_path_match = re.search(r"(?:https://|git@)[\w\.]+[:/](.*?)/", self.current_remote)
if org_path_match:
org_path = org_path_match.group(1)

subworkflow_directory = Path(self.directory, self.component_type, org_path, component)
subworkflow_directory = Path(self.directory, self.component_type, self.modules_repo.repo_path, component)
included_modules, included_subworkflows = get_components_to_install(subworkflow_directory)
# If a module/subworkflow has been removed from the subworkflow
for module in modules_to_update:
Expand Down

0 comments on commit f60a8a3

Please sign in to comment.