Skip to content

Commit 1e8f811

Browse files
committed
Add extra check and warning
1 parent 20387ad commit 1e8f811

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/service-integration/src/service_integration/cli/_compose_spec.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ def create_compose(
192192
if file_path.exists():
193193
configs_kwargs_map[config_name][arg_name] = file_path
194194

195+
# warn about subfolders without metadata.yml
196+
for subdir in filter(lambda p: p.is_dir(), basedir.rglob("*")):
197+
if not (subdir / "metadata.yml").exists():
198+
relative_subdir = subdir.relative_to(basedir)
199+
rich.print(
200+
f"[warning] Subfolder '{relative_subdir}' does not contain a 'metadata.yml' file. Skipping."
201+
)
202+
195203
if not configs_kwargs_map:
196204
rich.print(f"[warning] No config files were found in '{config_path}'")
197205

0 commit comments

Comments
 (0)