Skip to content

Commit 1acfe25

Browse files
committed
fix(cli): refresh import caches before agent validation
1 parent 4cc210e commit 1acfe25

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/google/adk/cli/cli_deploy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ def _validate_agent_import(
502502
# Add parent directory to path so imports work correctly
503503
if parent_dir not in sys.path:
504504
sys.path.insert(0, parent_dir)
505+
importlib.invalidate_caches()
505506
try:
506507
module = importlib.import_module(f'{module_name}.agent')
507508
except ImportError as e:

0 commit comments

Comments
 (0)