diff --git a/poetry/packages/locker.py b/poetry/packages/locker.py index 84bf2ce242b..623e2d7745e 100644 --- a/poetry/packages/locker.py +++ b/poetry/packages/locker.py @@ -180,11 +180,7 @@ def locked_repository( root_dir = self._lock.path.parent if package.source_type == "directory": # root dir should be the source of the package relative to the lock path - root_dir = Path( - os.path.relpath( - Path(package.source_url), self._lock.path.parent - ) - ).resolve() + root_dir = Path(package.source_url) if isinstance(constraint, list): for c in constraint: