Skip to content

xcaddy build failed ctx.AppIsConfigured undefined #13

@cowsay

Description

@cowsay

Tried to build xcaddy with modcaddy

xcaddy build --with github.com/gaukas/clienthellod/modcaddy

Got this:

go: downloading github.com/googleapis/enterprise-certificate-proxy v0.2.5
go: downloading cloud.google.com/go/compute v1.20.1
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
2023/10/02 20:58:39 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /root/4/caddy -ldflags -w -s -trimpath
# github.com/gaukas/clienthellod/modcaddy/listener
/root/.go/pkg/mod/github.com/gaukas/clienthellod@v0.4.0/modcaddy/listener/listener.go:65:10: ctx.AppIsConfigured undefined (type caddy.Context has no field or method AppIsConfigured)
# github.com/gaukas/clienthellod/modcaddy/handler
/root/.go/pkg/mod/github.com/gaukas/clienthellod@v0.4.0/modcaddy/handler/handler.go:53:10: ctx.AppIsConfigured undefined (type caddy.Context has no field or method AppIsConfigured)
2023/10/02 20:58:40 [INFO] Cleaning up temporary folder: /tmp/buildenv_2023-10-02-2058.860729220
2023/10/02 20:58:40 [FATAL] exit status 1

What can be wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions