45c60750ea647f3e6631c08368bb9531a600a0f9
When deploying a stack using a relative path as bind-mount source in the compose file, the CLI converts the relative path to an absolute path, relative to the location of the docker-compose file. This causes a problem when deploying a stack that uses an absolute Windows path, because a non-Windows client will fail to detect that the path (e.g. `C:\somedir`) is an absolute path (and not a relative directory named `C:\`). The existing code did already take Windows clients deploying a Linux stack into account (by checking if the path had a leading slash). This patch adds the reverse, and adds detection for Windows absolute paths on non-Windows clients. The code used to detect Windows absolute paths is copied from the Golang filepath package;1d0e94b1e1/src/path/filepath/path_windows.go (L12-L65)Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commitd6dd08d568) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit:a757fad956Component: cli
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%