Skip to content

mxcli docker run re-downloads MxBuild on Windows even when Linux binary already exists #126

@engalar

Description

@engalar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions