Skip to content

Commit 9cd6cfd

Browse files
committed
fix link resolution for mounted volume on macos
updated call to os.path.realpath inside assert_volumes to be os.path.abspath Fixes #1290 Signed-off-by: Alan Holt <[email protected]>
1 parent f618ff3 commit 9cd6cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

podman_compose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ async def assert_volume(compose: PodmanCompose, mount_dict: dict[str, Any]) -> N
403403
if mount_dict["type"] == "bind":
404404
basedir = os.path.realpath(compose.dirname)
405405
mount_src = mount_dict["source"]
406-
mount_src = os.path.realpath(os.path.join(basedir, os.path.expanduser(mount_src)))
406+
mount_src = os.path.abspath(os.path.join(basedir, os.path.expanduser(mount_src)))
407407
if not os.path.exists(mount_src):
408408
bind_opts = mount_dict.get("bind", {})
409409
if "create_host_path" in bind_opts and not bind_opts["create_host_path"]:

0 commit comments

Comments
 (0)