therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.5k stars 748 forks source link

Failed to remove deploy folder with wasm and docker #1200

Closed apapsch closed 2 years ago

apapsch commented 3 years ago

I followed https://github.com/therecipe/qt/wiki/Deploying-Linux-to-WebAssembly. First run produced the results. Second run crashes:

PANI[0000] failed to remove deploy folder                error="unlinkat /home/ep/src/monolith/go/qtdemo/deploy/wasm/go.wasm: permission denied"
panic: (*logrus.Entry) 0xc000123730

goroutine 1 [running]:
github.com/sirupsen/logrus.Entry.log(0xc000122070, 0xc000179a40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /home/ep/go/pkg/mod/github.com/sirupsen/logrus@v1.4.1/entry.go:239 +0x2ea
github.com/sirupsen/logrus.(*Entry).Log(0xc0001236c0, 0x0, 0xc0001590b8, 0x1, 0x1)
        /home/ep/go/pkg/mod/github.com/sirupsen/logrus@v1.4.1/entry.go:268 +0xf0
github.com/sirupsen/logrus.(*Entry).Panic(0xc0001236c0, 0xc0001bb0b8, 0x1, 0x1)
        /home/ep/go/pkg/mod/github.com/sirupsen/logrus@v1.4.1/entry.go:306 +0x55
github.com/therecipe/qt/internal/cmd/deploy.Deploy(0x7ffdc7059e3d, 0x5, 0x7ffdc7059e43, 0x4, 0xc00002e094, 0x1f, 0xc00006af01, 0x0, 0x0, 0x0, ...)
        /home/ep/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/internal/cmd/deploy/deploy.go:43 +0x289b
main.main()
        /home/ep/go/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/cmd/qtdeploy/main.go:150 +0x885

Indeed, the deployed files are owned by root, I have to remove manually with sudo.