We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca844de commit 0fa24c2Copy full SHA for 0fa24c2
src/lsp_client/server/docker.py
@@ -50,7 +50,16 @@ def _parts(self) -> list[str]:
50
51
@classmethod
52
def from_path(cls, path: Path) -> BindMount:
53
- return cls(source=str(path), target=str(path))
+ absolute_path = path.resolve()
54
+
55
+ if absolute_path.drive:
56
+ raise ValueError(
57
+ f"Path '{absolute_path}' contains a drive letter, which is not supported "
58
+ "for same-path bind mounts in Linux containers. "
59
+ "On Windows, you must explicitly separate 'source' and 'target' paths."
60
+ )
61
62
+ return cls(source=str(absolute_path), target=str(absolute_path))
63
64
65
class VolumeMount(MountBase):
0 commit comments