rzane / docker2exe

Convert a Docker image to an executable
127 stars 18 forks source link

Path separator mismatches when running on Windows #5

Open StefanoOcchetti opened 2 years ago

StefanoOcchetti commented 2 years ago

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>
asdasd070511 commented 1 year ago

same problem