Closed BonBonSlick closed 3 years ago
buntu@s1-4-bhs5:~$ xcaddy build \ > --with github.com/dunglas/mercure/caddy 2021/03/04 09:36:54 [INFO] Temporary folder: /tmp/buildenv_2021-03-04-0936.961939135 2021/03/04 09:36:54 [INFO] Writing main module: /tmp/buildenv_2021-03-04-0936.961939135/main.go 2021/03/04 09:36:54 [INFO] Initializing Go module 2021/03/04 09:36:54 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy go: creating new go.mod: module caddy go: to add module requirements and sums: go mod tidy 2021/03/04 09:36:54 [INFO] Pinning versions 2021/03/04 09:36:54 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2 go get: added github.com/caddyserver/caddy/v2 v2.3.0 2021/03/04 09:36:58 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/dunglas/mercure/caddy go get: added github.com/dunglas/mercure/caddy v0.0.0-20210301202656-c5ccf9423bf5 2021/03/04 09:37:05 [INFO] Build environment ready 2021/03/04 09:37:05 [INFO] Building Caddy 2021/03/04 09:37:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy 2021/03/04 09:37:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /home/ubuntu/caddy -ldflags -w -s -trimpath 2021/03/04 09:37:07 [INFO] Build complete: ./caddy 2021/03/04 09:37:07 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-03-04-0936.961939135 ubuntu@s1-4-bhs5:~$ which caddy ubuntu@s1-4-bhs5:~$ whereis caddy caddy: ubuntu@s1-4-bhs5:~$ which xcaddy /home/ubuntu/go_lang_builds/bin/xcaddy ubuntu@s1-4-bhs5:~$ whereis xcaddy xcaddy: /home/ubuntu/go_lang_builds/bin/xcaddy ubuntu@s1-4-bhs5:~$ caddy vesrions caddy: command not found
No caddy. What for this tool if you have to download binary manually anyway?
It outputs a caddy binary in the location you ran it. See the log output, it's located at /home/ubuntu/caddy. You'll need to move it to the appropriate location (often /usr/bin/caddy).
caddy
/home/ubuntu/caddy
/usr/bin/caddy
No caddy. What for this tool if you have to download binary manually anyway?