docker2exe icon indicating copy to clipboard operation
docker2exe copied to clipboard

Path separator mismatches when running on Windows

Open StefanoOcchetti opened this issue 3 years ago • 1 comments

When running on Windows, slashes are a problem in paths. Commands like mkdir fail.

Also, if the --module is not specified, the module is automatically named something like domain/userName/imageName, and, again, the slash causes problems.

Example:

PS C:\Projects> .\docker2exe-windows-amd64.exe --name alpine --module alpine --image alpine:latest --embed
go mod init alpine
go: creating new go.mod: module alpine
go: to add module requirements and sums:
        go mod tidy
go get
go: added github.com/mattn/go-isatty v0.0.16
go: added golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
docker save alpine:latest | gzip > image.tar.gz
mkdir C:\Projects/dist
The syntax of the command is incorrect.
make: *** [Makefile:25: C:\Projects/dist] Error 1
exit status 2
PS C:\Projects>

StefanoOcchetti avatar Sep 06 '22 07:09 StefanoOcchetti

same problem

asdasd070511 avatar Feb 06 '23 07:02 asdasd070511