-
Notifications
You must be signed in to change notification settings - Fork 16k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instead of #28128
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
import shutil | ||
import subprocess | ||
import sys | ||
import warnings | ||
from pathlib import Path | ||
from typing import Dict, List, Optional, Tuple | ||
|
||
|
@@ -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) | ||
|