fix: Prevent adk deploy from uploading .adk/session.db file
- This file can get quite large when testing locally in the ADK Web UI, and it can cause deployments to fail. PiperOrigin-RevId: 952144358
This commit is contained in:
committed by
Copybara-Service
parent
2316b83468
commit
dab351beca
@@ -616,7 +616,7 @@ def _get_ignore_patterns_func(
|
||||
agent_folder: str,
|
||||
) -> Callable[[Any, list[str]], set[str]]:
|
||||
"""Returns a shutil.ignore_patterns function with combined patterns from .gitignore, .gcloudignore and .ae_ignore."""
|
||||
patterns = set()
|
||||
patterns = set('.adk/')
|
||||
|
||||
for filename in ['.gitignore', '.gcloudignore', '.ae_ignore']:
|
||||
filepath = os.path.join(agent_folder, filename)
|
||||
|
||||
Reference in New Issue
Block a user