diff --git a/conda_lock/conda_lock.py b/conda_lock/conda_lock.py index 52a3ac608..bf8826d20 100644 --- a/conda_lock/conda_lock.py +++ b/conda_lock/conda_lock.py @@ -740,9 +740,7 @@ def create_lockfile_from_spec( content_hash=spec.content_hash(), channels=[c for c in spec.channels], platforms=spec.platforms, - sources=[ - relative_path(lockfile_path.parent, source) for source in spec.sources - ], + sources=[str(source.resolve()) for source in spec.sources], ), )