mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Update the plugin git url pattern (#1047)
This commit is contained in:
@@ -118,7 +118,7 @@ async def install_git_plugin(repo_url: str) -> str:
|
||||
"""
|
||||
match = is_git_url(repo_url)
|
||||
if not match:
|
||||
raise errors.RequestError(msg='Git 仓库地址格式非法')
|
||||
raise errors.RequestError(msg='Git 仓库地址格式非法,仅支持 HTTP/HTTPS 协议')
|
||||
repo_name = match.group('repo')
|
||||
path = anyio.Path(PLUGIN_DIR / repo_name)
|
||||
if await path.exists():
|
||||
|
||||
Reference in New Issue
Block a user