therecipe/qt

qtdeploy on Windows with Docker has backslash in docker cmd

rf152 opened this issue · 0 comments

rf152 commented

When I run qtbuild -docker deploy desktop, the docker command gets correctly constructed except for backslashes in the path for the build:

docker run --rm -v C:\\Development\\Go-App:/media/Go-App -v //c/Users/rfranks/go:/media/sf_GOPATH0 -e GOPATH=/media/sf_GOPATH0:/home/user/work -i therecipe/qt:windows_64_shared qtdeploy -debug -ldflags= -tags= build windows /media\\Go-App

Failing with the error:

time="2022-04-07T08:49:16Z" level=error msg="failed to run command" _func=RunCmd cmd="go env GOMOD" dir="/media\\Go-App" env= error="chdir /media\\Go-App: no such file or directory" name=GOMOD

When I run the command manually with the \ replaced with / docker run --rm -v C:\\Development\\Go-App:/media/Go-App -v //c/Users/rfranks/go:/media/sf_GOPATH0 -e GOPATH=/media/sf_GOPATH0:/home/user/work -i therecipe/qt:windows_64_shared qtdeploy -debug -ldflags= -tags= build windows /media/Go-App it runs correctly, and compiles.