Open ChristianKniep opened 1 year ago
When trying to build the extension I get this:
#13 146.9 2023/01/23 07:57:24 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath #13 160.8 # github.com/leodido/caddy-conditional-logging #13 160.8 /go/pkg/mod/github.com/leodido/caddy-conditional-logging@v0.0.0-20210721092755-8534d30877aa/plugin.go:153:14: cannot use ctx.Logger (value of type func(module ...caddy.Module) *zap.Logger) as type func(caddy.Module) *zap.Logger in assignment #13 163.1 2023/01/23 07:57:41 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2023-01-23-0754.2686892640
The Dockerfile I use:
FROM caddy:2.6.2-builder AS builder RUN xcaddy build \ --with github.com/leodido/caddy-conditional-logging
Switching back to an older version works.
FROM caddy:2.5.2-builder AS builder RUN xcaddy build \ --with github.com/leodido/caddy-conditional-logging
When trying to build the extension I get this:
The Dockerfile I use: