Commit 97e63f62 by Matthieu Devlin

fix: use already calculated relative url

parent f0487f6c
...@@ -180,11 +180,7 @@ class Locker: ...@@ -180,11 +180,7 @@ class Locker:
root_dir = self._lock.path.parent root_dir = self._lock.path.parent
if package.source_type == "directory": if package.source_type == "directory":
# root dir should be the source of the package relative to the lock path # root dir should be the source of the package relative to the lock path
root_dir = Path( root_dir = Path(package.source_url)
os.path.relpath(
Path(package.source_url), self._lock.path.parent
)
).resolve()
if isinstance(constraint, list): if isinstance(constraint, list):
for c in constraint: for c in constraint:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment