From a96c7fc77de008df650b1c7f29ff504c9ea36fc4 Mon Sep 17 00:00:00 2001 From: Benjamin Labrecque Date: Tue, 7 Jul 2026 12:08:06 +0200 Subject: [PATCH] cli: cleaner error handling --- cli/src/core/service_creator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/core/service_creator.py b/cli/src/core/service_creator.py index 0b64294..1f6c66b 100644 --- a/cli/src/core/service_creator.py +++ b/cli/src/core/service_creator.py @@ -109,13 +109,13 @@ class ServiceCreator: """ Generates a uv.lock file by running 'uv lock' in the target directory. """ - project_path = Path(SERVICE_DEST_DIR / service.dir_name).resolve() - logger.info(f"Generating uv.lock inside: {project_path}") + app_path = Path(SERVICE_DEST_DIR / service.dir_name / "current" / "app").resolve() + logger.info(f"Generating uv.lock inside: {app_path}") try: result = subprocess.run( ["uv", "lock"], - cwd=project_path, # Changes the working directory for the command + cwd=app_path, # Changes the working directory for the command capture_output=True, # Captures stdout and stderr text=True, # Returns strings instead of raw bytes check=True, # Raises CalledProcessError if the exit code is non-zero