I am trying to keep track of the version I use of coraza-caddy, but I have issue when calling it with the new release:
xcaddy build --with github.com/corazawaf/coraza-caddy@v2.0.0-rc.1
0 11.08 go: github.com/corazawaf/coraza-caddy@v2.0.0-rc.1: invalid version: module contains a go.mod file, so module path must match major version ("github.com/corazawaf/coraza-caddy/v2")
0 11.08 2023/05/30 20:59:20 [FATAL] exit status 1
When I specify the previous release, it is working fine:
xcaddy build --with github.com/corazawaf/coraza-caddy@v1.2.2
Here is the Dockerfile I use:
# Set Caddy release tag
ARG CADDY_TAG="2.6-builder-alpine"
# Use official Caddy builder image
FROM caddy:"${CADDY_TAG}" as builder-caddy
# Build Caddy with Coraza
RUN --mount=type=cache,target=/go,id=caddy \
xcaddy build --with github.com/corazawaf/coraza-caddy@v2.0.0-rc.1
Is it me doing something wrong or is there an issue with metadata somewhere?
Please note, when I try this way, I get the same error:
xcaddy build --with github.com/corazawaf/coraza-caddy/v2@v2.0.0-rc.1
Getting the same issue here, trying to use v2.0.0-rc.1 because that's the revision that is not affected by issue #63. Until this can be fixed using master is another option.
Hello,
I am trying to keep track of the version I use of coraza-caddy, but I have issue when calling it with the new release:
xcaddy build --with github.com/corazawaf/coraza-caddy@v2.0.0-rc.1
When I specify the previous release, it is working fine:
xcaddy build --with github.com/corazawaf/coraza-caddy@v1.2.2
Here is the Dockerfile I use:
Is it me doing something wrong or is there an issue with metadata somewhere?
Please note, when I try this way, I get the same error:
xcaddy build --with github.com/corazawaf/coraza-caddy/v2@v2.0.0-rc.1