Using --cmd in haxeflag with Docker

Not sure if this requires feedback but thought I should post it here in case someone else has a similar problem.

For a few months I had an OpenFL project with a haxeflag I used to copy the result to a Docker container.

<haxeflag name="--cmd" value='docker cp bin/html5/bin ${dockervolume}:/var/www/html/' />

It was working nicely at first. Later the copy began to fail silently, and then eventually would fail completely with an error code 1 causing a build fail. My suspicion is that either MacOS or Docker security updates were interfering with this. At first I thought it was a problem with using Lix and I ended up reinstalling Lix, Haxe, and many Haxelibs. It only started compiling again when I removed the copy directives from my project.xml.

As you can see it was an obscure problem on a unique tech stack. It is possible that something else was happening, but in case I found the only solution… here you go! :slight_smile: