Skip to content

Commit

Permalink
🎨 check for recursive installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Jan 31, 2024
1 parent 34938fb commit 4b5b614
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ def handle_force_installation(name: str):
raise InvalidWorkflowError(
f"When installing a local workflow, the path must be a directory. Found: {workflow_local_path}"
)
if self.snk_workflows_dir.resolve().is_relative_to(workflow_local_path.resolve()) and not editable:
raise InvalidWorkflowError(
f"The workflow directory contains SNK_HOME!\nWORKFLOW: {workflow_local_path.resolve()}\nSNK_HOME: {self.snk_workflows_dir.resolve()}.\n\nTry installing the workflow with --editable."
)
if not name:
name = workflow_local_path.name
if not force:
Expand Down

0 comments on commit 4b5b614

Please sign in to comment.