caddy-tailscale icon indicating copy to clipboard operation
caddy-tailscale copied to clipboard

Unable to build with xcaddy when paired with caddy-maxmind-geolocation.

Open xGigaa opened this issue 1 year ago • 1 comments
trafficstars

I seems to be unable to build caddy-tailscale with caddy-maxmind-geolocation. Building them separately works fine but if I build them together the build fails with:

26.54 2024/09/06 11:55:23 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger 
56.30 # tailscale.com/net/tstun
56.30 /go/pkg/mod/[email protected]/net/tstun/wrap.go:965:17: res.packet.IsNil undefined (type *stack.PacketBuffer has no field or method IsNil)
59.87 2024/09/06 11:55:56 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2024-09-06-1154.204774573
59.87 2024/09/06 11:55:56 [FATAL] exit status 1
------
failed to solve: process "/bin/sh -c xcaddy build     --with github.com/tailscale/caddy-tailscale     --with github.com/porech/caddy-maxmind-geolocation" did not complete successfully: exit code: 1

This is my Dockerfile:

FROM caddy:2.8.4-builder AS builder
RUN xcaddy build \
    --with github.com/tailscale/caddy-tailscale \
    --with github.com/porech/caddy-maxmind-geolocation
FROM caddy:2.8.4
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Maybe I'm doing something wrong here?

xGigaa avatar Sep 06 '24 12:09 xGigaa