Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xGigaa opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@xGigaa
Copy link

xGigaa commented Sep 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant