After building xcaddy attempts to run the new build with version command and fails. There is nothing wrong with permissions of that binary on my system. I I assume fork/exec is some child process starter for Go? Therein lies the permission problem.
/opt/caddy2/amd64 version
2020/05/06 08:23:53 [FATAL] fork/exec /opt/caddy2/amd64: permission denied
BTW my script runs the version command afterwards fine. Is there really any reason that xcaddy needs to do this? My suggestion is to remove it if it's going to be problematic (point of confusion) for some users.
After building xcaddy attempts to run the new build with version command and fails. There is nothing wrong with permissions of that binary on my system. I I assume
fork/execis some child process starter for Go? Therein lies the permission problem.BTW my script runs the version command afterwards fine. Is there really any reason that xcaddy needs to do this? My suggestion is to remove it if it's going to be problematic (point of confusion) for some users.