feat: warn on multiple import
All checks were successful
build / build (push) Successful in 2m14s
build / trigger-build-image (push) Successful in 8s

This commit is contained in:
张泊明518370910136 2025-09-22 01:09:07 -07:00
parent 8150d3d770
commit 6f26d17656
GPG Key ID: D47306D7062CDA9D

View File

@ -85,6 +85,10 @@ def get_executor_with(
for src, dst in task_stage.files.import_map.items():
if dst in cached:
continue
if dst in task_stage.files.import_:
logger.warning(
f"file {dst} imported multiple times. from files.import: {dst} and files.import-map: {src}"
)
copy_in[dst] = result.LocalFile(src=str(JOJ3_CONFIG_ROOT / src))
file_export = task_stage.files.export
copy_out_files = ["stdout", "stderr"]