For some reason executing relative commands (I'm not convinced this has anything to do with containers) fails with the above error, despite that command being in the $PATH which can be verified with command -v.
Here's a sample debug run:
localhost:~# ./box run prologic/static
2022/09/15 22:51:05 newCmd.Start() called
2022/09/15 22:51:05 newCmd.Wait() called
INFO[0000] Running command "static" with args #[] in container...
INFO[0000] Setting container env to: []string{"PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "GOLANG_VERSION=1.14.2", "GOPATH=/go"}
Error: exec: "static": executable file not found in $PATH
2022/09/15 22:51:05 newCmd.Wait() ended
localhost:~#
See: https://git.mills.io/prologic/box/issues/19
I don't get it 🤦♂️ I thought it might be the new Go 1.19 DotErr behaviour that was introduced, but I disabled that and still the same result. Any ideas? 🤔