Closed benjaoming closed 1 year ago
Hi there :wave:
Unfortunately my Go knowledge is close to zero, so I apologize for this issue not being of much help :(
I haven't been able to build the plugin lately. I'm using the docker image caddy:2.5.2-builder to build.
caddy:2.5.2-builder
This is slightly related to the other issue in #2
Here is the error:
------ > [caddy builder 2/2] RUN xcaddy build --with github.com/chukmunnlee/caddy-openapi@v0.7.0: #0 0.267 2023/08/17 20:18:57 [INFO] Temporary folder: /tmp/buildenv_2023-08-17-2018.1223048076 #0 0.267 2023/08/17 20:18:57 [INFO] Writing main module: /tmp/buildenv_2023-08-17-2018.1223048076/main.go #0 0.267 package main #0 0.267 #0 0.267 import ( #0 0.267 caddycmd "github.com/caddyserver/caddy/v2/cmd" #0 0.267 #0 0.267 // plug in Caddy modules here #0 0.267 _ "github.com/caddyserver/caddy/v2/modules/standard" #0 0.267 _ "github.com/chukmunnlee/caddy-openapi" #0 0.267 ) #0 0.267 #0 0.267 func main() { #0 0.267 caddycmd.Main() #0 0.267 } #0 0.271 2023/08/17 20:18:57 [INFO] Initializing Go module #0 0.271 2023/08/17 20:18:57 [INFO] exec (timeout=10s): /usr/local/go/bin/go mod init caddy #0 0.271 go: creating new go.mod: module caddy #0 0.271 go: to add module requirements and sums: #0 0.271 go mod tidy #0 0.272 2023/08/17 20:18:57 [INFO] Pinning versions #0 0.272 2023/08/17 20:18:57 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2@v2.5.2 #0 0.481 go: downloading github.com/caddyserver/caddy/v2 v2.5.2 #0 58.52 go: downloading github.com/caddyserver/certmagic v0.16.1 #0 58.52 go: downloading github.com/google/uuid v1.3.0 #0 58.52 go: downloading github.com/lucas-clemente/quic-go v0.28.0 #0 58.58 go: downloading github.com/prometheus/client_golang v1.12.1 #0 58.66 go: downloading go.uber.org/zap v1.21.0 #0 58.75 go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 #0 58.83 go: downloading github.com/beorn7/perks v1.0.1 #0 58.83 go: downloading github.com/cespare/xxhash/v2 v2.1.2 #0 58.89 go: downloading github.com/cespare/xxhash v1.1.0 #0 58.89 go: downloading github.com/golang/protobuf v1.5.2 #0 58.93 go: downloading github.com/prometheus/client_model v0.2.0 #0 58.95 go: downloading github.com/prometheus/common v0.32.1 #0 59.00 go: downloading github.com/prometheus/procfs v0.7.3 #0 59.00 go: downloading golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a #0 59.08 go: downloading google.golang.org/protobuf v1.28.0 #0 59.20 go: downloading go.uber.org/atomic v1.9.0 #0 59.24 go: downloading go.uber.org/multierr v1.6.0 #0 59.27 go: downloading github.com/klauspost/cpuid/v2 v2.0.13 #0 59.28 go: downloading github.com/libdns/libdns v0.2.1 #0 59.29 go: downloading github.com/mholt/acmez v1.0.2 #0 59.34 go: downloading github.com/miekg/dns v1.1.46 #0 59.40 go: downloading golang.org/x/crypto v0.0.0-20220210151621-f4118a5b28e2 #0 59.66 go: downloading golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e #0 59.69 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1 #0 59.74 go: downloading github.com/marten-seemann/qpack v0.2.1 #0 59.83 go: downloading github.com/cheekybits/genny v1.0.0 #0 59.85 go: downloading github.com/onsi/ginkgo v1.16.4 #0 59.85 go: downloading golang.org/x/tools v0.1.7 #0 59.90 go: downloading github.com/marten-seemann/qtls-go1-16 v0.1.5 #0 59.90 go: downloading github.com/marten-seemann/qtls-go1-17 v0.1.2 #0 59.93 go: downloading github.com/marten-seemann/qtls-go1-18 v0.1.2 #0 60.10 go: downloading github.com/marten-seemann/qtls-go1-19 v0.1.0-beta.1 #0 60.10 go: downloading golang.org/x/text v0.3.8-0.20211004125949-5bd84dd9b33b #0 60.33 go: downloading github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 #0 60.39 go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 #0 60.45 go: downloading golang.org/x/mod v0.4.2 #0 60.50 go: downloading github.com/nxadm/tail v1.4.8 #0 60.54 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 #0 60.58 go: downloading github.com/fsnotify/fsnotify v1.5.1 #0 67.35 go: added github.com/beorn7/perks v1.0.1 #0 67.35 go: added github.com/caddyserver/caddy/v2 v2.5.2 #0 67.35 go: added github.com/caddyserver/certmagic v0.16.1 #0 67.35 go: added github.com/cespare/xxhash/v2 v2.1.2 #0 67.35 go: added github.com/cheekybits/genny v1.0.0 #0 67.35 go: added github.com/fsnotify/fsnotify v1.5.1 #0 67.35 go: added github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 #0 67.35 go: added github.com/golang/protobuf v1.5.2 #0 67.35 go: added github.com/google/uuid v1.3.0 #0 67.35 go: added github.com/klauspost/cpuid/v2 v2.0.13 #0 67.35 go: added github.com/libdns/libdns v0.2.1 #0 67.35 go: added github.com/lucas-clemente/quic-go v0.28.0 #0 67.35 go: added github.com/marten-seemann/qpack v0.2.1 #0 67.35 go: added github.com/marten-seemann/qtls-go1-16 v0.1.5 #0 67.35 go: added github.com/marten-seemann/qtls-go1-17 v0.1.2 #0 67.35 go: added github.com/marten-seemann/qtls-go1-18 v0.1.2 #0 67.35 go: added github.com/marten-seemann/qtls-go1-19 v0.1.0-beta.1 #0 67.35 go: added github.com/matttproud/golang_protobuf_extensions v1.0.1 #0 67.35 go: added github.com/mholt/acmez v1.0.2 #0 67.35 go: added github.com/miekg/dns v1.1.46 #0 67.35 go: added github.com/nxadm/tail v1.4.8 #0 67.35 go: added github.com/onsi/ginkgo v1.16.4 #0 67.35 go: added github.com/prometheus/client_golang v1.12.1 #0 67.35 go: added github.com/prometheus/client_model v0.2.0 #0 67.35 go: added github.com/prometheus/common v0.32.1 #0 67.35 go: added github.com/prometheus/procfs v0.7.3 #0 67.35 go: added go.uber.org/atomic v1.9.0 #0 67.35 go: added go.uber.org/multierr v1.6.0 #0 67.35 go: added go.uber.org/zap v1.21.0 #0 67.35 go: added golang.org/x/crypto v0.0.0-20220210151621-f4118a5b28e2 #0 67.35 go: added golang.org/x/mod v0.4.2 #0 67.35 go: added golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e #0 67.35 go: added golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a #0 67.35 go: added golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 #0 67.35 go: added golang.org/x/text v0.3.8-0.20211004125949-5bd84dd9b33b #0 67.35 go: added golang.org/x/tools v0.1.7 #0 67.35 go: added golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 #0 67.35 go: added google.golang.org/protobuf v1.28.0 #0 67.35 go: added gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 #0 67.36 2023/08/17 20:20:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/chukmunnlee/caddy-openapi@v0.7.0 github.com/caddyserver/caddy/v2@v2.5.2 #0 67.59 go: downloading github.com/chukmunnlee/caddy-openapi v0.7.0 #0 96.21 go: downloading github.com/getkin/kin-openapi v0.76.0 #0 96.29 go: downloading github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac #0 96.30 go: downloading github.com/google/cel-go v0.11.4 #0 96.52 go: downloading google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 #0 96.52 go: downloading github.com/gorilla/mux v1.8.0 #0 96.52 go: downloading gopkg.in/yaml.v2 v2.4.0 #0 96.52 go: downloading github.com/ghodss/yaml v1.0.0 #0 96.53 go: downloading github.com/go-openapi/jsonpointer v0.19.5 #0 96.57 go: downloading github.com/smallstep/certificates v0.19.0 #0 96.57 go: downloading github.com/smallstep/cli v0.18.0 #0 97.17 go: downloading github.com/smallstep/truststore v0.11.0 #0 97.20 go: downloading github.com/tailscale/tscert v0.0.0-20220316030059-54bbcb9f74e2 #0 97.21 go: downloading github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220418222510-f25a4f6275ed #0 97.26 go: downloading github.com/antlr/antlr4 v0.0.0-20200503195918-621b933c7a7f #0 97.31 go: downloading github.com/stoewer/go-strcase v1.2.0 #0 97.34 go: downloading github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b #0 97.34 go: downloading github.com/go-openapi/swag v0.19.5 #0 97.39 go: downloading github.com/pkg/errors v0.9.1 #0 97.40 go: downloading go.step.sm/cli-utils v0.7.0 #0 97.43 go: downloading github.com/smallstep/nosql v0.4.0 #0 97.71 go: downloading go.step.sm/crypto v0.16.1 #0 98.01 go: downloading go.step.sm/linkedca v0.15.0 #0 98.01 go: downloading google.golang.org/grpc v1.46.0 #0 98.01 go: downloading gopkg.in/square/go-jose.v2 v2.6.0 #0 98.08 go: downloading github.com/slackhq/nebula v1.5.2 #0 98.16 go: downloading howett.net/plist v1.0.0 #0 98.21 go: downloading github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e #0 98.21 go: downloading github.com/urfave/cli v1.22.5 #0 98.23 go: downloading github.com/micromdm/scep/v2 v2.1.0 #0 98.26 go: downloading go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 #0 98.28 go: downloading github.com/Masterminds/sprig/v3 v3.2.2 #0 98.28 go: downloading github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e #0 98.29 go: downloading github.com/manifoldco/promptui v0.9.0 #0 98.29 go: downloading filippo.io/edwards25519 v1.0.0-rc.1 #0 98.32 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0 #0 98.32 go: downloading github.com/mitchellh/go-ps v1.0.0 #0 98.33 go: downloading github.com/dgraph-io/badger v1.6.2 #0 98.34 go: downloading github.com/dgraph-io/badger/v2 v2.2007.4 #0 98.37 go: downloading go.etcd.io/bbolt v1.3.6 #0 98.37 go: downloading github.com/go-sql-driver/mysql v1.6.0 #0 98.38 go: downloading github.com/jackc/pgx/v4 v4.14.0 #0 98.39 go: downloading github.com/go-kit/kit v0.10.0 #0 98.44 go: downloading github.com/Masterminds/goutils v1.1.1 #0 98.44 go: downloading github.com/Masterminds/semver/v3 v3.1.1 #0 98.44 go: downloading github.com/huandu/xstrings v1.3.2 #0 98.44 go: downloading github.com/imdario/mergo v0.3.12 #0 98.44 go: downloading github.com/mitchellh/copystructure v1.2.0 #0 98.44 go: downloading github.com/shopspring/decimal v1.2.0 #0 98.45 go: downloading github.com/spf13/cast v1.4.1 #0 98.48 go: downloading github.com/russross/blackfriday/v2 v2.0.1 #0 98.48 go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d #0 98.48 go: downloading github.com/dgraph-io/ristretto v0.1.0 #0 98.50 go: downloading github.com/russross/blackfriday v1.5.2 #0 98.51 go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 #0 98.52 go: downloading github.com/rs/xid v1.2.1 #0 98.52 go: downloading github.com/sirupsen/logrus v1.8.1 #0 98.52 go: downloading github.com/jackc/pgconn v1.10.1 #0 98.55 go: downloading github.com/jackc/pgtype v1.9.0 #0 98.57 go: downloading github.com/jackc/pgio v1.0.0 #0 98.57 go: downloading github.com/jackc/pgproto3/v2 v2.2.0 #0 98.57 go: downloading github.com/go-logfmt/logfmt v0.5.0 #0 98.58 go: downloading github.com/mitchellh/reflectwalk v1.0.2 #0 98.59 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0 #0 98.59 go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 #0 98.60 go: downloading github.com/golang/snappy v0.0.4 #0 98.60 go: downloading github.com/klauspost/compress v1.15.6 #0 98.62 go: downloading github.com/mattn/go-colorable v0.1.8 #0 98.62 go: downloading github.com/golang/glog v1.0.0 #0 98.64 go: downloading github.com/jackc/chunkreader/v2 v2.0.1 #0 98.66 go: downloading github.com/jackc/pgpassfile v1.0.0 #0 98.68 go: downloading github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b #0 98.69 go: downloading github.com/mattn/go-isatty v0.0.13 #0 102.2 go: downloading github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 #0 102.2 go: downloading github.com/open-policy-agent/opa v0.55.0 #0 102.2 go: downloading github.com/antlr/antlr4 v4.11.1+incompatible #0 105.7 go: downloading github.com/prometheus/client_golang v1.16.0 #0 105.7 go: downloading golang.org/x/term v0.10.0 #0 105.8 go: downloading golang.org/x/net v0.12.0 #0 105.8 go: downloading google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 #0 105.8 go: downloading google.golang.org/protobuf v1.30.0 #0 105.9 go: downloading golang.org/x/crypto v0.11.0 #0 106.0 go: downloading golang.org/x/sys v0.10.0 #0 106.2 go: downloading github.com/OneOfOne/xxhash v1.2.8 #0 106.2 go: downloading github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 #0 106.2 go: downloading go.opentelemetry.io/otel/sdk v1.16.0 #0 106.2 go: downloading github.com/cespare/xxhash/v2 v2.2.0 #0 106.2 go: downloading github.com/prometheus/client_model v0.3.0 #0 106.2 go: downloading github.com/prometheus/common v0.42.0 #0 106.2 go: downloading go.opentelemetry.io/otel v1.16.0 #0 106.2 go: downloading github.com/prometheus/procfs v0.10.1 #0 106.2 go: downloading github.com/gobwas/glob v0.2.3 #0 106.2 go: downloading github.com/tchap/go-patricia/v2 v2.3.1 #0 106.3 go: downloading github.com/yashtewari/glob-intersection v0.2.0 #0 106.3 go: downloading golang.org/x/text v0.11.0 #0 106.9 go: downloading golang.org/x/tools v0.6.0 #0 106.9 go: downloading google.golang.org/grpc v1.56.2 #0 106.9 go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 #0 106.9 go: downloading github.com/sirupsen/logrus v1.9.3 #0 106.9 go: downloading github.com/go-ini/ini v1.67.0 #0 107.0 go: downloading github.com/golang/protobuf v1.5.3 #0 107.0 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4 #0 107.0 go: downloading github.com/agnivade/levenshtein v1.1.1 #0 107.1 go: downloading go.opentelemetry.io/otel/trace v1.16.0 #0 107.1 go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb #0 107.2 go: downloading github.com/go-logr/logr v1.2.4 #0 107.2 go: downloading github.com/go-logr/stdr v1.2.2 #0 107.2 go: downloading go.opentelemetry.io/otel/metric v1.16.0 #0 107.2 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2 #0 107.2 go: downloading github.com/dgraph-io/ristretto v0.1.1 #0 107.2 go: downloading github.com/go-logfmt/logfmt v0.5.1 #0 107.2 go: downloading golang.org/x/mod v0.8.0 #0 107.2 go: downloading github.com/russross/blackfriday/v2 v2.1.0 #0 107.2 go: downloading github.com/fsnotify/fsnotify v1.6.0 #0 107.3 go: downloading github.com/klauspost/compress v1.16.0 #0 107.3 go: downloading github.com/golang/glog v1.1.0 #0 109.9 go: added github.com/OneOfOne/xxhash v1.2.8 #0 109.9 go: added github.com/agnivade/levenshtein v1.1.1 #0 109.9 go: upgraded github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220418222510-f25a4f6275ed => v1.4.10 #0 109.9 go: upgraded github.com/cespare/xxhash/v2 v2.1.2 => v2.2.0 #0 109.9 go: added github.com/chukmunnlee/caddy-openapi v0.7.0 #0 109.9 go: upgraded github.com/cpuguy83/go-md2man/v2 v2.0.0 => v2.0.2 #0 109.9 go: upgraded github.com/dgraph-io/ristretto v0.0.4-0.20200906165740-41ebdbffecfd => v0.1.1 #0 109.9 go: upgraded github.com/fsnotify/fsnotify v1.5.1 => v1.6.0 #0 109.9 go: added github.com/getkin/kin-openapi v0.76.0 #0 109.9 go: added github.com/go-ini/ini v1.67.0 #0 109.9 go: upgraded github.com/go-logfmt/logfmt v0.5.0 => v0.5.1 #0 109.9 go: upgraded github.com/go-logr/logr v1.2.2 => v1.2.4 #0 109.9 go: added github.com/go-openapi/jsonpointer v0.19.5 #0 109.9 go: added github.com/go-openapi/swag v0.19.5 #0 109.9 go: added github.com/gobwas/glob v0.2.3 #0 109.9 go: upgraded github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b => v1.1.0 #0 109.9 go: upgraded github.com/golang/protobuf v1.5.2 => v1.5.3 #0 109.9 go: added github.com/gorilla/mux v1.8.0 #0 109.9 go: upgraded github.com/klauspost/compress v1.15.6 => v1.16.0 #0 109.9 go: upgraded github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe => v0.0.0-20190626092158-b2ccc519800e #0 109.9 go: upgraded github.com/matttproud/golang_protobuf_extensions v1.0.1 => v1.0.4 #0 109.9 go: added github.com/open-policy-agent/opa v0.55.0 #0 109.9 go: upgraded github.com/prometheus/client_golang v1.12.1 => v1.16.0 #0 109.9 go: upgraded github.com/prometheus/client_model v0.2.0 => v0.3.0 #0 109.9 go: upgraded github.com/prometheus/common v0.32.1 => v0.42.0 #0 109.9 go: upgraded github.com/prometheus/procfs v0.7.3 => v0.10.1 #0 109.9 go: added github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 #0 109.9 go: upgraded github.com/russross/blackfriday/v2 v2.0.1 => v2.1.0 #0 109.9 go: upgraded github.com/sirupsen/logrus v1.8.1 => v1.9.3 #0 109.9 go: added github.com/tchap/go-patricia/v2 v2.3.1 #0 109.9 go: added github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb #0 109.9 go: added github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 #0 109.9 go: added github.com/yashtewari/glob-intersection v0.2.0 #0 109.9 go: upgraded go.opentelemetry.io/otel v1.4.0 => v1.16.0 #0 109.9 go: upgraded go.opentelemetry.io/otel/metric v0.27.0 => v1.16.0 #0 109.9 go: upgraded go.opentelemetry.io/otel/sdk v1.4.0 => v1.16.0 #0 109.9 go: upgraded go.opentelemetry.io/otel/trace v1.4.0 => v1.16.0 #0 109.9 go: upgraded golang.org/x/crypto v0.0.0-20220210151621-f4118a5b28e2 => v0.11.0 #0 109.9 go: upgraded golang.org/x/mod v0.4.2 => v0.8.0 #0 109.9 go: upgraded golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e => v0.12.0 #0 109.9 go: upgraded golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a => v0.10.0 #0 109.9 go: upgraded golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 => v0.10.0 #0 109.9 go: upgraded golang.org/x/text v0.3.8-0.20211004125949-5bd84dd9b33b => v0.11.0 #0 109.9 go: upgraded golang.org/x/tools v0.1.7 => v0.6.0 #0 109.9 go: upgraded google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 => v0.0.0-20230410155749-daa745c078e1 #0 109.9 go: upgraded google.golang.org/grpc v1.46.0 => v1.56.2 #0 109.9 go: upgraded google.golang.org/protobuf v1.28.0 => v1.30.0 #0 109.9 2023/08/17 20:20:47 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v #0 110.1 go: downloading github.com/go-chi/chi v4.1.2+incompatible #0 110.1 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0 #0 110.1 go: downloading github.com/BurntSushi/toml v1.1.0 #0 110.1 go: downloading github.com/alecthomas/chroma v0.10.0 #0 110.1 go: downloading github.com/yuin/goldmark v1.4.13 #0 110.1 go: downloading github.com/yuin/goldmark-highlighting v0.0.0-20220208100518-594be1970594 #0 110.2 go: downloading gopkg.in/yaml.v3 v3.0.1 #0 110.2 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.42.0 #0 110.3 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 #0 110.3 go: downloading go.opentelemetry.io/contrib v0.20.0 #0 110.3 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 #0 110.3 go: downloading go.opentelemetry.io/otel/exporters/otlp v0.20.0 #0 110.3 go: downloading github.com/felixge/httpsnoop v1.0.3 #0 110.3 go: downloading github.com/dlclark/regexp2 v1.4.0 #0 110.4 go: downloading go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 #0 110.4 go: downloading go.opentelemetry.io/proto/otlp v0.19.0 #0 110.4 go: downloading github.com/cenkalti/backoff/v4 v4.2.1 #0 110.4 go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 #0 110.5 go: downloading github.com/cenkalti/backoff v2.2.1+incompatible #0 110.5 go: downloading github.com/grpc-ecosystem/grpc-gateway v1.16.0 #0 113.1 2023/08/17 20:20:50 [INFO] Build environment ready #0 113.1 2023/08/17 20:20:50 [INFO] Building Caddy #0 113.1 2023/08/17 20:20:50 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy #0 113.2 go: downloading github.com/stretchr/testify v1.8.3 #0 113.2 go: downloading github.com/fortytw2/leaktest v1.3.0 #0 113.2 go: downloading go.uber.org/goleak v1.2.1 #0 113.2 go: downloading github.com/golang/mock v1.6.0 #0 113.2 go: downloading github.com/onsi/gomega v1.13.0 #0 113.3 go: downloading github.com/davecgh/go-spew v1.1.1 #0 113.3 go: downloading github.com/google/go-cmp v0.5.9 #0 113.3 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c #0 113.3 go: downloading github.com/dgraph-io/badger/v3 v3.2103.5 #0 113.3 go: downloading github.com/foxcpp/go-mockdns v1.0.0 #0 113.3 go: downloading github.com/benbjohnson/clock v1.1.0 #0 113.3 go: downloading github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262 #0 113.3 go: downloading golang.org/x/sync v0.3.0 #0 113.4 go: downloading github.com/pmezard/go-difflib v1.0.0 #0 113.4 go: downloading github.com/kr/pretty v0.3.1 #0 113.4 go: downloading github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 #0 113.4 go: downloading github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 #0 113.4 go: downloading github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 #0 113.5 go: downloading github.com/aws/aws-sdk-go v1.37.0 #0 115.5 go: downloading github.com/googleapis/gax-go/v2 v2.1.1 #0 115.5 go: downloading google.golang.org/api v0.70.0 #0 115.5 go: downloading cloud.google.com/go/kms v1.10.1 #0 115.5 go: downloading github.com/googleapis/gax-go v2.0.2+incompatible #0 115.5 go: downloading github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 #0 115.5 go: downloading github.com/cockroachdb/apd v1.1.0 #0 115.5 go: downloading cloud.google.com/go v0.110.0 #0 115.5 go: downloading github.com/gofrs/uuid v4.0.0+incompatible #0 115.6 go: downloading github.com/kr/text v0.2.0 #0 115.6 go: downloading github.com/rogpeppe/go-internal v1.9.0 #0 115.6 go: downloading go.opencensus.io v0.24.0 #0 115.7 go: downloading github.com/go-stack/stack v1.8.0 #0 115.7 go: downloading github.com/chzyer/logex v1.1.10 #0 115.7 go: downloading github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 #0 115.7 go: downloading github.com/lib/pq v1.10.2 #0 115.7 go: downloading cloud.google.com/go/iam v0.13.0 #0 117.7 go: downloading github.com/gogo/protobuf v1.3.2 #0 117.7 go: downloading github.com/google/flatbuffers v1.12.1 #0 117.7 go: downloading github.com/jmespath/go-jmespath v0.4.0 #0 117.8 go: downloading github.com/spaolacci/murmur3 v1.1.0 #0 117.8 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da #0 117.8 go: downloading golang.org/x/oauth2 v0.7.0 #0 117.9 go: downloading cloud.google.com/go/compute/metadata v0.2.3 #0 117.9 go: downloading cloud.google.com/go/compute v1.19.1 #0 118.0 go: downloading google.golang.org/appengine v1.6.7 #0 118.7 2023/08/17 20:20:56 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath #0 161.5 # go.opentelemetry.io/otel/sdk/trace #0 161.5 /go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:78:24: undefined: atomic.Pointer #0 161.5 /go/pkg/mod/go.opentelemetry.io/otel/sdk@v1.16.0/trace/provider.go:80:20: undefined: atomic.Bool #0 161.5 note: module requires Go 1.19 #0 172.3 2023/08/17 20:21:49 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2023-08-17-2018.1223048076 #0 172.3 2023/08/17 20:21:49 [FATAL] exit status 2 ------ failed to solve: executor failed running [/bin/sh -c xcaddy build --with github.com/chukmunnlee/caddy-openapi@v0.7.0]: exit code: 1
All is good! I had the experience from #2 that I was supposed to pin to caddy:2.5.2-builder to avoid issues.
It turns out that caddy:2.7.3-builder works, so can close both these issues :heavy_check_mark:
caddy:2.7.3-builder
Hi there :wave:
Unfortunately my Go knowledge is close to zero, so I apologize for this issue not being of much help :(
I haven't been able to build the plugin lately. I'm using the docker image
caddy:2.5.2-builder
to build.This is slightly related to the other issue in #2
Here is the error: