Giter Site home page Giter Site logo

Comments (3)

Zekemaz avatar Zekemaz commented on June 11, 2024

Hello, I am getting the same error while running xcaddy build. My pipeline breaks because of it

[build 2/2] RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest   && xcaddy build "v2.7.5"     --output /tmp/caddy     --with github.com/caddy-dns/ovh     --with github.com/caddy-dns/cloudflare     --with github.com/caddyserver/transform-encoder:
18.11 go: downloading github.com/google/s2a-go v0.1.7
18.11 go: downloading go.opencensus.io v0.24.0
18.16 go: downloading cloud.google.com/go/compute v1.23.0
18.19 go: downloading google.golang.org/appengine v1.6.7
18.21 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
18.37 2024/02/19 08:48:30 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /tmp/caddy -ldflags -w -s -trimpath 
30.56 # github.com/caddyserver/caddy/v2/modules/caddytls
30.56 /go/pkg/mod/github.com/caddyserver/caddy/[email protected]/modules/caddytls/automation.go:254:18: cannot use func(name string) error {…} (value of type func(name string) error) as func(ctx context.Context, name string) error value in struct literal
30.75 2024/02/19 08:48:43 [INFO] Cleaning up temporary folder: /tmp/buildenv_2024-02-19-0848.1573577225
30.75 2024/02/19 08:48:43 [FATAL] exit status 1

Has anybody a clue as to why this is happening ?

Thank you

from cloudflare.

mohammed90 avatar mohammed90 commented on June 11, 2024

As I said on caddyserver/xcaddy#177 issue, this is not a bug in either xcaddy or this module. It's due to a breaking change in caddyserver/certmagic v0.20.0 library that Caddy had to accommodate. To build v2.7.5, use this command to force the older version of certmagic:

xcaddy build v2.7.5 --with github.com/caddyserver/[email protected]

Why are you using v2.7.5 though?

from cloudflare.

mohammed90 avatar mohammed90 commented on June 11, 2024

Wait -- I have the fix

from cloudflare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.