Error when builing

1. Caddy version (caddy version):

latest with xcaddy

2. How I run Caddy:

This is a build error :sweat_smile:

a. System environment:

Debian 10

b. Command:

xcaddy build \
>     --with

3. The problem I’m having:

The build don’t work :frowning:

4. Error messages and/or full log output:

2021/08/17 10:06:19 [INFO] exec (timeout=0s): /usr/bin/go build -o /home/uzanto/caddy -ldflags -w -s -trimpath 
flag provided but not defined: -trimpath
usage: go build [-o output] [-i] [build flags] [packages]
Run 'go help build' for details.
2021/08/17 10:06:20 [INFO] Cleaning up temporary folder: /tmp/buildenv_2021-08-17-0958.126855198
2021/08/17 10:06:20 [FATAL] exit status 2

Your Go version must be very old. The -trimpath flag was added in Go 1.13. What is your Go version?


go version go1.11.6 linux/amd64 :sweat_smile: I’ll try to update, thanks :slight_smile:

This topic was automatically closed after 30 days. New replies are no longer allowed.