Problem
On Windows host with Docker (WSL2), mxcli docker run re-downloads MxBuild every time, even when the Linux binary is already installed at ~/.mxcli/mxbuild/{version}/modeler/mxbuild.
Root cause
mxcli's setup check likely looks for mxbuild.exe (Windows convention) to determine if MxBuild is installed. But mxcli docker run needs the Linux binary (mxbuild without .exe), which was already extracted successfully. Since mxbuild.exe doesn't exist, mxcli assumes MxBuild is missing and re-downloads the 394 MB tarball.
Reproduction
# Windows 11, Git Bash
./mxcli setup mxbuild -p CarrefourAgent.mpr
# Downloads and extracts Linux mxbuild successfully
ls ~/.mxcli/mxbuild/11.6.4/modeler/mxbuild
# EXISTS - Linux ELF binary (76 KB)
ls ~/.mxcli/mxbuild/11.6.4/modeler/mxbuild.exe
# DOES NOT EXIST
./mxcli docker run -p CarrefourAgent.mpr --wait
# "Downloading MxBuild 11.6.4 for amd64..." ← downloads again!
Expected behavior
mxcli docker run should check for the Linux binary mxbuild (not mxbuild.exe) when preparing a Docker build, since Docker runs Linux containers.
Environment
- mxcli: 0.1.0
- OS: Windows 11 Pro (Git Bash)
- Docker: WSL2 backend
- Mendix: 11.6.4
- MxBuild tarball: ~394 MB (re-downloaded unnecessarily)
Copied from engalar#45
Problem
On Windows host with Docker (WSL2),
mxcli docker runre-downloads MxBuild every time, even when the Linux binary is already installed at~/.mxcli/mxbuild/{version}/modeler/mxbuild.Root cause
mxcli's setup check likely looks for
mxbuild.exe(Windows convention) to determine if MxBuild is installed. Butmxcli docker runneeds the Linux binary (mxbuildwithout.exe), which was already extracted successfully. Sincemxbuild.exedoesn't exist, mxcli assumes MxBuild is missing and re-downloads the 394 MB tarball.Reproduction
Expected behavior
mxcli docker runshould check for the Linux binarymxbuild(notmxbuild.exe) when preparing a Docker build, since Docker runs Linux containers.Environment
Copied from engalar#45