Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qtdeploy on Windows with Docker has backslash in docker cmd #1265

Open
rf152 opened this issue Apr 7, 2022 · 0 comments
Open

qtdeploy on Windows with Docker has backslash in docker cmd #1265

rf152 opened this issue Apr 7, 2022 · 0 comments

Comments

@rf152
Copy link

rf152 commented Apr 7, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant