Skip to content

Commit

Permalink
cli: warning on app add (#28619)
Browse files Browse the repository at this point in the history
instead of #28128
  • Loading branch information
efriis authored Dec 9, 2024
1 parent 90f162e commit cef21a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/cli/langchain_cli/namespaces/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import shutil
import subprocess
import sys
import warnings
from pathlib import Path
from typing import Dict, List, Optional, Tuple

Expand Down Expand Up @@ -163,6 +164,12 @@ def add(
langchain app add git+ssh://[email protected]/efriis/simple-pirate.git
"""

if not branch and not repo:
warnings.warn(
"Adding templates from the default branch and repo is deprecated."
" At a minimum, you will have to add `--branch v0.2` for this to work"
)

parsed_deps = parse_dependencies(dependencies, repo, branch, api_path)

project_root = get_package_root(project_dir)
Expand Down

0 comments on commit cef21a0

Please sign in to comment.