fix(paths): normalize relative paths to posix (#239)

Co-authored-by: danielfrey63 <daniel.frey@sbb.ch>
Co-authored-by: Andy <119136210+AndyMik90@users.noreply.github.com>
This commit is contained in:
Daniel Frey
2025-12-25 19:53:33 +01:00
committed by GitHub
parent a2cee6941f
commit 6ac8250b5b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -180,8 +180,8 @@ class EvolutionStorage:
try:
# Resolve both paths to handle symlinks (e.g., /var -> /private/var on macOS)
resolved_path = path.resolve()
return str(resolved_path.relative_to(self.project_dir))
return resolved_path.relative_to(self.project_dir).as_posix()
except ValueError:
# Path is not under project_dir, return as-is
return str(path)
return str(path)
return path.as_posix()
return path.as_posix()
+1 -1
View File
@@ -221,7 +221,7 @@ class ServiceOrchestrator:
self._services.append(
ServiceConfig(
name=item.name,
path=str(item.relative_to(self.project_dir)),
path=item.relative_to(self.project_dir).as_posix(),
type="local",
)
)