caddy-dns / infomaniak

MIT License
2 stars 0 forks source link

Change in Caddy 2.8? #2

Closed nurunet closed 3 months ago

nurunet commented 3 months ago

Hi,

This works nicely with Caddy 2.7 on Openmediavault 7, but I fail to build the Dockerfile with Caddy 2.8.

This works:

# syntax=docker/dockerfile:1
FROM caddy:2.7.6-builder AS builder

RUN xcaddy build \
    --with github.com/caddy-dns/infomaniak

FROM caddy:2.7.6

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

This fails:

# syntax=docker/dockerfile:1
FROM caddy:2.8-builder AS builder

RUN xcaddy build \
    --with github.com/caddy-dns/infomaniak

FROM caddy:2.8

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Not sure if the logs help:

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker build --pull --progress plain --tag 'caddy-infomaniak-new' '/srv/dev-disk-by-uuid-a628efcc-ecdf-4d6d-b3c9-16ced0792616/Docker/compose/caddy-infomaniak-new/' 2>&1': #0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 446B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/caddy:2.8-builder
#2 ...

#3 [internal] load metadata for docker.io/library/caddy:2.8
#3 DONE 1.1s

#2 [internal] load metadata for docker.io/library/caddy:2.8-builder
#2 DONE 1.1s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [builder 1/2] FROM docker.io/library/caddy:2.8-builder@sha256:5d4aac8d814437adaddf8b112af61d01b82721f882fc583d3543af93612153e8
#5 CACHED

#6 [stage-1 1/2] FROM docker.io/library/caddy:2.8@sha256:09b415c1f8fa012f849386e343a9e7d1dad579e50ee8c71456798469e91d0e37
#6 CACHED

#7 [builder 2/2] RUN xcaddy build     --with github.com/caddy-dns/infomaniak
#7 0.281 2024/05/26 13:20:57 [INFO] absolute output file path: /usr/bin/caddy
#7 0.282 2024/05/26 13:20:57 [INFO] Temporary folder: /tmp/buildenv_2024-05-26-1320.3473250249
#7 0.282 2024/05/26 13:20:57 [INFO] Writing main module: /tmp/buildenv_2024-05-26-1320.3473250249/main.go
#7 0.282 package main
#7 0.282
#7 0.282 import (
#7 0.282    caddycmd "github.com/caddyserver/caddy/v2/cmd"
#7 0.282
#7 0.282    // plug in Caddy modules here
#7 0.282    _ "github.com/caddyserver/caddy/v2/modules/standard"
#7 0.282    _ "github.com/caddy-dns/infomaniak"
#7 0.282 )
#7 0.282
#7 0.282 func main() {
#7 0.282    caddycmd.Main()
#7 0.282 }
#7 0.282 2024/05/26 13:20:57 [INFO] Initializing Go module
#7 0.282 2024/05/26 13:20:57 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod init caddy
#7 0.320 go: creating new go.mod: module caddy
#7 0.325 go: to add module requirements and sums:
#7 0.325    go mod tidy
#7 0.326 2024/05/26 13:20:57 [INFO] Pinning versions
#7 0.326 2024/05/26 13:20:57 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2@v2.8.0-rc.1
#7 0.583 go: downloading github.com/caddyserver/caddy/v2 v2.8.0-rc.1
#7 1.127 go: downloading github.com/caddyserver/certmagic v0.21.2
#7 1.128 go: downloading github.com/cespare/xxhash/v2 v2.2.0
#7 1.128 go: downloading github.com/google/uuid v1.6.0
#7 1.129 go: downloading github.com/prometheus/client_golang v1.19.1
#7 1.130 go: downloading github.com/quic-go/quic-go v0.44.0
#7 1.132 go: downloading go.uber.org/zap v1.27.0
#7 1.134 go: downloading go.uber.org/zap/exp v0.2.0
#7 1.138 go: downloading golang.org/x/sys v0.20.0
#7 1.365 go: downloading github.com/cespare/xxhash v1.1.0
#7 1.481 go: downloading golang.org/x/term v0.20.0
#7 1.530 go: downloading golang.org/x/time v0.5.0
#7 1.590 go: downloading github.com/caddyserver/zerossl v0.1.3
#7 1.591 go: downloading github.com/klauspost/cpuid/v2 v2.2.7
#7 1.592 go: downloading github.com/libdns/libdns v0.2.2
#7 1.592 go: downloading github.com/mholt/acmez/v2 v2.0.1
#7 1.602 go: downloading github.com/miekg/dns v1.1.59
#7 1.615 go: downloading github.com/zeebo/blake3 v0.2.3
#7 1.633 go: downloading golang.org/x/crypto v0.23.0
#7 1.655 go: downloading golang.org/x/net v0.25.0
#7 1.666 go: downloading github.com/beorn7/perks v1.0.1
#7 2.051 go: downloading github.com/prometheus/client_model v0.5.0
#7 2.051 go: downloading github.com/prometheus/common v0.48.0
#7 2.053 go: downloading google.golang.org/protobuf v1.34.1
#7 2.055 go: downloading github.com/prometheus/procfs v0.12.0
#7 2.058 go: downloading go.uber.org/multierr v1.11.0
#7 2.078 go: downloading github.com/onsi/ginkgo/v2 v2.13.2
#7 2.084 go: downloading go.uber.org/mock v0.4.0
#7 2.813 go: downloading golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
#7 2.835 go: downloading github.com/quic-go/qpack v0.4.0
#7 2.871 go: downloading golang.org/x/tools v0.21.0
#7 2.966 go: downloading golang.org/x/text v0.15.0
#7 3.041 go: downloading golang.org/x/mod v0.17.0
#7 3.055 go: downloading github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
#7 3.065 go: downloading github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
#7 5.567 go: downloading golang.org/x/sync v0.7.0
#7 7.074 go: added github.com/beorn7/perks v1.0.1
#7 7.074 go: added github.com/caddyserver/caddy/v2 v2.8.0-rc.1
#7 7.074 go: added github.com/caddyserver/certmagic v0.21.2
#7 7.074 go: added github.com/caddyserver/zerossl v0.1.3
#7 7.074 go: added github.com/cespare/xxhash/v2 v2.2.0
#7 7.074 go: added github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
#7 7.074 go: added github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
#7 7.074 go: added github.com/google/uuid v1.6.0
#7 7.074 go: added github.com/klauspost/cpuid/v2 v2.2.7
#7 7.074 go: added github.com/libdns/libdns v0.2.2
#7 7.074 go: added github.com/mholt/acmez/v2 v2.0.1
#7 7.074 go: added github.com/miekg/dns v1.1.59
#7 7.074 go: added github.com/onsi/ginkgo/v2 v2.13.2
#7 7.074 go: added github.com/prometheus/client_golang v1.19.1
#7 7.074 go: added github.com/prometheus/client_model v0.5.0
#7 7.074 go: added github.com/prometheus/common v0.48.0
#7 7.074 go: added github.com/prometheus/procfs v0.12.0
#7 7.074 go: added github.com/quic-go/qpack v0.4.0
#7 7.074 go: added github.com/quic-go/quic-go v0.44.0
#7 7.074 go: added github.com/zeebo/blake3 v0.2.3
#7 7.074 go: added go.uber.org/mock v0.4.0
#7 7.074 go: added go.uber.org/multierr v1.11.0
#7 7.074 go: added go.uber.org/zap v1.27.0
#7 7.074 go: added go.uber.org/zap/exp v0.2.0
#7 7.074 go: added golang.org/x/crypto v0.23.0
#7 7.074 go: added golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
#7 7.074 go: added golang.org/x/mod v0.17.0
#7 7.074 go: added golang.org/x/net v0.25.0
#7 7.074 go: added golang.org/x/sync v0.7.0
#7 7.074 go: added golang.org/x/sys v0.20.0
#7 7.074 go: added golang.org/x/term v0.20.0
#7 7.074 go: added golang.org/x/text v0.15.0
#7 7.074 go: added golang.org/x/time v0.5.0
#7 7.074 go: added golang.org/x/tools v0.21.0
#7 7.074 go: added google.golang.org/protobuf v1.34.1
#7 7.081 2024/05/26 13:21:04 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddy-dns/infomaniak github.com/caddyserver/caddy/v2@v2.8.0-rc.1
#7 7.585 go: downloading github.com/caddy-dns/infomaniak v0.0.0-20230513140205-4a7f7025ddf0
#7 7.637 go: downloading github.com/libdns/infomaniak v0.1.2
#7 7.909 go: added github.com/caddy-dns/infomaniak v0.0.0-20230513140205-4a7f7025ddf0
#7 7.909 go: added github.com/libdns/infomaniak v0.1.2
#7 7.913 2024/05/26 13:21:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v
#7 7.929 go: downloading github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b
#7 7.930 go: downloading github.com/spf13/cobra v1.8.0
#7 7.931 go: downloading github.com/spf13/pflag v1.0.5
#7 7.932 go: downloading github.com/go-chi/chi/v5 v5.0.12
#7 7.934 go: downloading go.uber.org/automaxprocs v1.5.3
#7 7.934 go: downloading github.com/smallstep/certificates v0.26.1
#7 7.934 go: downloading github.com/dustin/go-humanize v1.0.1
#7 7.936 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20240507223354-67b13616a595
#7 8.415 go: downloading github.com/smallstep/truststore v0.13.0
#7 8.431 go: downloading go.step.sm/crypto v0.45.0
#7 8.432 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
#7 8.433 go: downloading github.com/smallstep/nosql v0.6.1
#7 8.485 go: downloading github.com/tailscale/tscert v0.0.0-20240517230440-bbccfbf48933
#7 8.618 go: downloading github.com/google/cel-go v0.20.1
#7 8.755 go: downloading github.com/klauspost/compress v1.17.8
#7 8.903 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.3
#7 8.903 go: downloading github.com/inconshreveable/mousetrap v1.1.0
#7 8.903 go: downloading gopkg.in/yaml.v3 v3.0.1
#7 8.903 go: downloading howett.net/plist v1.0.0
#7 8.904 go: downloading github.com/pires/go-proxyproto v0.7.0
#7 8.904 go: downloading github.com/pkg/errors v0.9.1
#7 8.908 go: downloading github.com/BurntSushi/toml v1.3.2
#7 8.908 go: downloading github.com/Masterminds/sprig/v3 v3.2.3
#7 8.909 go: downloading github.com/alecthomas/chroma/v2 v2.13.0
#7 8.910 go: downloading github.com/yuin/goldmark v1.7.1
#7 9.154 go: downloading github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
#7 9.155 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
#7 9.155 go: downloading go.opentelemetry.io/contrib/propagators/autoprop v0.42.0
#7 9.158 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
#7 9.209 go: downloading go.opentelemetry.io/otel/sdk v1.21.0
#7 9.209 go: downloading go.opentelemetry.io/otel v1.24.0
#7 9.272 go: downloading go.opentelemetry.io/otel/trace v1.24.0
#7 9.279 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
#7 9.372 go: downloading github.com/fxamacker/cbor/v2 v2.6.0
#7 9.532 go: downloading github.com/google/go-tpm v0.9.0
#7 9.571 go: downloading github.com/smallstep/go-attestation v0.4.4-0.20240109183208-413678f90935
#7 9.579 go: downloading go.step.sm/linkedca v0.20.1
#7 9.713 go: downloading google.golang.org/grpc v1.63.2
#7 9.713 go: downloading go.step.sm/cli-utils v0.9.0
#7 9.713 go: downloading github.com/slackhq/nebula v1.6.1
#7 9.772 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240506185236-b8a5c65736ae
#7 9.870 go: downloading github.com/stoewer/go-strcase v1.2.0
#7 10.29 go: downloading github.com/antlr4-go/antlr/v4 v4.13.0
#7 10.30 go: downloading github.com/dgraph-io/badger v1.6.2
#7 10.72 go: downloading github.com/dgraph-io/badger/v2 v2.2007.4
#7 10.76 go: downloading go.etcd.io/bbolt v1.3.9
#7 10.94 go: downloading github.com/go-sql-driver/mysql v1.7.1

#7 10.94 go: downloading github.com/jackc/pgx/v4 v4.18.3
#7 10.95 go: downloading github.com/russross/blackfriday/v2 v2.1.0
#7 11.13 go: downloading github.com/Masterminds/semver/v3 v3.2.0
#7 11.13 go: downloading github.com/huandu/xstrings v1.3.3
#7 11.13 go: downloading github.com/imdario/mergo v0.3.12
#7 11.13 go: downloading github.com/mitchellh/copystructure v1.2.0
#7 11.13 go: downloading github.com/shopspring/decimal v1.2.0
#7 11.13 go: downloading github.com/Masterminds/goutils v1.1.1
#7 11.24 go: downloading github.com/spf13/cast v1.4.1
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/aws v1.17.0
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/b3 v1.17.0
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/jaeger v1.17.0
#7 11.30 go: downloading go.opentelemetry.io/contrib/propagators/ot v1.17.0
#7 11.30 go: downloading github.com/felixge/httpsnoop v1.0.4
#7 11.30 go: downloading go.opentelemetry.io/otel/metric v1.24.0
#7 11.32 go: downloading github.com/go-jose/go-jose/v3 v3.0.3
#7 11.43 go: downloading github.com/sirupsen/logrus v1.9.3
#7 11.43 go: downloading github.com/smallstep/pkcs7 v0.0.0-20231024181729-3b98ecc1ca81
#7 11.43 go: downloading github.com/smallstep/scep v0.0.0-20231024192529-aee96d7ad34d
#7 11.48 go: downloading go.opentelemetry.io/proto/otlp v1.0.0
#7 11.61 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6
#7 11.76 go: downloading github.com/rs/xid v1.5.0
#7 11.76 go: downloading filippo.io/edwards25519 v1.1.0
#7 11.78 go: downloading github.com/Microsoft/go-winio v0.6.0
#7 11.78 go: downloading github.com/mitchellh/go-ps v1.0.0
#7 11.78 go: downloading github.com/google/go-tspi v0.3.0
#7 11.78 go: downloading github.com/x448/float16 v0.8.4
#7 12.12 go: downloading github.com/urfave/cli v1.22.14
#7 12.12 go: downloading github.com/manifoldco/promptui v0.9.0
#7 12.12 go: downloading github.com/chzyer/readline v1.5.1
#7 12.12 go: downloading github.com/dgraph-io/ristretto v0.1.0
#7 12.12 go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
#7 12.12 go: downloading github.com/golang/protobuf v1.5.4
#7 12.12 go: downloading github.com/jackc/pgconn v1.14.3
#7 12.27 go: downloading github.com/jackc/pgio v1.0.0
#7 12.59 go: downloading github.com/jackc/pgproto3/v2 v2.3.3
#7 12.64 go: downloading github.com/jackc/pgtype v1.14.0
#7 12.64 go: downloading github.com/mitchellh/reflectwalk v1.0.2
#7 12.64 go: downloading github.com/go-logr/logr v1.4.1
#7 12.64 go: downloading github.com/dlclark/regexp2 v1.11.0
#7 12.64 go: downloading github.com/go-logr/stdr v1.2.2
#7 12.64 go: downloading github.com/cenkalti/backoff/v4 v4.2.1
#7 12.68 go: downloading github.com/go-kit/kit v0.13.0
#7 12.69 go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0
#7 13.13 go: downloading github.com/google/certificate-transparency-go v1.1.8-0.20240110162603-74a5dd331745
#7 13.15 go: downloading github.com/golang/snappy v0.0.4
#7 13.15 go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
#7 13.38 go: downloading github.com/jackc/chunkreader/v2 v2.0.1
#7 13.49 go: downloading github.com/jackc/pgpassfile v1.0.0
#7 13.49 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
#7 13.49 go: downloading github.com/golang/glog v1.2.0
#7 13.49 go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
#7 13.49 go: downloading github.com/go-kit/log v0.2.1
#7 14.05 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
#7 14.21 go: downloading github.com/mattn/go-colorable v0.1.13
#7 14.22 go: downloading github.com/go-logfmt/logfmt v0.6.0
#7 14.31 go: downloading github.com/mattn/go-isatty v0.0.20
#7 20.05 2024/05/26 13:21:17 [INFO] Build environment ready
#7 20.05 2024/05/26 13:21:17 [INFO] Building Caddy
#7 20.05 2024/05/26 13:21:17 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -e
#7 20.09 go: downloading go.uber.org/goleak v1.3.0
#7 20.09 go: downloading github.com/onsi/gomega v1.29.0
#7 20.09 go: downloading github.com/stretchr/testify v1.9.0
#7 20.09 go: downloading github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262
#7 20.09 go: downloading github.com/google/go-cmp v0.6.0
#7 20.10 go: downloading github.com/zeebo/assert v1.1.0
#7 20.10 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
#7 20.10 go: downloading github.com/prashantv/gostub v1.1.0
#7 20.45 go: downloading github.com/davecgh/go-spew v1.1.1
#7 20.85 go: downloading github.com/alecthomas/assert/v2 v2.6.0
#7 20.96 go: downloading github.com/google/go-tpm-tools v0.4.4
#7 20.97 go: downloading github.com/peterbourgon/diskv/v3 v3.0.1
#7 20.98 go: downloading github.com/schollz/jsonstore v1.1.0
#7 21.32 go: downloading gopkg.in/yaml.v2 v2.4.0
#7 21.32 go: downloading github.com/alecthomas/repr v0.4.0
#7 21.32 go: downloading github.com/chzyer/test v1.0.0
#7 21.32 go: downloading github.com/aws/aws-sdk-go-v2/config v1.27.13
#7 21.32 go: downloading cloud.google.com/go/kms v1.16.0
#7 21.32 go: downloading github.com/aws/aws-sdk-go-v2/service/kms v1.31.1
#7 21.32 go: downloading google.golang.org/api v0.180.0
#7 21.32 go: downloading github.com/kr/pretty v0.3.1
#7 21.33 go: downloading github.com/googleapis/gax-go/v2 v2.12.4
#7 21.61 go: downloading github.com/cockroachdb/apd v1.1.0
#7 21.63 go: downloading github.com/gofrs/uuid v4.0.0+incompatible
#7 21.69 go: downloading cloud.google.com/go v0.112.1
#7 21.69 go: downloading github.com/pmezard/go-difflib v1.0.0
#7 21.70 go: downloading github.com/google/btree v1.1.2
#7 21.72 go: downloading github.com/hexops/gotextdiff v1.0.3
#7 21.75 go: downloading github.com/aws/aws-sdk-go-v2 v1.26.1
#7 21.77 go: downloading github.com/zeebo/pcg v1.0.1
#7 21.78 go: downloading github.com/chzyer/logex v1.2.1
#7 21.78 go: downloading github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65
#7 21.85 go: downloading github.com/lib/pq v1.10.9
#7 21.85 go: downloading github.com/kr/text v0.2.0
#7 21.85 go: downloading github.com/rogpeppe/go-internal v1.10.0
#7 21.89 go: downloading github.com/OneOfOne/xxhash v1.2.2
#7 22.00 go: downloading github.com/spaolacci/murmur3 v1.1.0
#7 22.15 go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5
#7 22.15 go: downloading cloud.google.com/go/iam v1.1.8
#7 22.15 go: downloading github.com/aws/smithy-go v1.20.2
#7 22.15 go: downloading cloud.google.com/go/longrunning v0.5.7
#7 22.44 go: downloading google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda
#7 22.44 go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.17.13
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.20.6
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.0
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.28.7
#7 23.93 go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5
#7 23.96 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2
#7 23.96 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7
#7 30.27 go: downloading cloud.google.com/go/auth v0.4.1
#7 30.27 go: downloading golang.org/x/oauth2 v0.20.0
#7 30.27 go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0
#7 30.27 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.2
#7 30.27 go: downloading github.com/google/s2a-go v0.1.7
#7 30.27 go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.2
#7 30.27 go: downloading go.opencensus.io v0.24.0
#7 30.27 go: downloading cloud.google.com/go/compute/metadata v0.3.0
#7 30.40 go: downloading cloud.google.com/go/compute v1.24.0
#7 30.66 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
#7 31.10 2024/05/26 13:21:28 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger
#7 41.47 # github.com/libdns/infomaniak
#7 41.47 /go/pkg/mod/github.com/libdns/infomaniak@v0.1.2/mappers.go:23:13: cannot use int(ikr.Priority) (value of type int) as uint value in struct literal
#7 47.79 2024/05/26 13:21:45 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2024-05-26-1320.3473250249
#7 47.79 2024/05/26 13:21:45 [FATAL] exit status 1
#7 ERROR: process "/bin/sh -c xcaddy build     --with github.com/caddy-dns/infomaniak" did not complete successfully: exit code: 1
------
 > [builder 2/2] RUN xcaddy build     --with github.com/caddy-dns/infomaniak:
30.27 go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.2
30.27 go: downloading go.opencensus.io v0.24.0
30.27 go: downloading cloud.google.com/go/compute/metadata v0.3.0
30.40 go: downloading cloud.google.com/go/compute v1.24.0
30.66 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
31.10 2024/05/26 13:21:28 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger
41.47 # github.com/libdns/infomaniak
41.47 /go/pkg/mod/github.com/libdns/infomaniak@v0.1.2/mappers.go:23:13: cannot use int(ikr.Priority) (value of type int) as uint value in struct literal
47.79 2024/05/26 13:21:45 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2024-05-26-1320.3473250249
47.79 2024/05/26 13:21:45 [FATAL] exit status 1
------
Dockerfile:10
--------------------
   9 |
  10 | >>> RUN xcaddy build \
  11 | >>>     --with github.com/caddy-dns/infomaniak
  12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c xcaddy build     --with github.com/caddy-dns/infomaniak" did not complete successfully: exit code: 1

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker build --pull --progress plain --tag 'caddy-infomaniak-new' '/srv/dev-disk-by-uuid-a628efcc-ecdf-4d6d-b3c9-16ced0792616/Docker/compose/caddy-infomaniak-new/' 2>&1': #0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 446B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/caddy:2.8-builder
#2 ...

#3 [internal] load metadata for docker.io/library/caddy:2.8
#3 DONE 1.1s

#2 [internal] load metadata for docker.io/library/caddy:2.8-builder
#2 DONE 1.1s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [builder 1/2] FROM docker.io/library/caddy:2.8-builder@sha256:5d4aac8d814437adaddf8b112af61d01b82721f882fc583d3543af93612153e8
#5 CACHED

#6 [stage-1 1/2] FROM docker.io/library/caddy:2.8@sha256:09b415c1f8fa012f849386e343a9e7d1dad579e50ee8c71456798469e91d0e37
#6 CACHED

#7 [builder 2/2] RUN xcaddy build     --with github.com/caddy-dns/infomaniak
#7 0.281 2024/05/26 13:20:57 [INFO] absolute output file path: /usr/bin/caddy
#7 0.282 2024/05/26 13:20:57 [INFO] Temporary folder: /tmp/buildenv_2024-05-26-1320.3473250249
#7 0.282 2024/05/26 13:20:57 [INFO] Writing main module: /tmp/buildenv_2024-05-26-1320.3473250249/main.go
#7 0.282 package main
#7 0.282
#7 0.282 import (
#7 0.282    caddycmd "github.com/caddyserver/caddy/v2/cmd"
#7 0.282
#7 0.282    // plug in Caddy modules here
#7 0.282    _ "github.com/caddyserver/caddy/v2/modules/standard"
#7 0.282    _ "github.com/caddy-dns/infomaniak"
#7 0.282 )
#7 0.282
#7 0.282 func main() {
#7 0.282    caddycmd.Main()
#7 0.282 }
#7 0.282 2024/05/26 13:20:57 [INFO] Initializing Go module
#7 0.282 2024/05/26 13:20:57 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod init caddy
#7 0.320 go: creating new go.mod: module caddy
#7 0.325 go: to add module requirements and sums:
#7 0.325    go mod tidy
#7 0.326 2024/05/26 13:20:57 [INFO] Pinning versions
#7 0.326 2024/05/26 13:20:57 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddyserver/caddy/v2@v2.8.0-rc.1
#7 0.583 go: downloading github.com/caddyserver/caddy/v2 v2.8.0-rc.1
#7 1.127 go: downloading github.com/caddyserver/certmagic v0.21.2
#7 1.128 go: downloading github.com/cespare/xxhash/v2 v2.2.0
#7 1.128 go: downloading github.com/google/uuid v1.6.0
#7 1.129 go: downloading github.com/prometheus/client_golang v1.19.1
#7 1.130 go: downloading github.com/quic-go/quic-go v0.44.0
#7 1.132 go: downloading go.uber.org/zap v1.27.0
#7 1.134 go: downloading go.uber.org/zap/exp v0.2.0
#7 1.138 go: downloading golang.org/x/sys v0.20.0
#7 1.365 go: downloading github.com/cespare/xxhash v1.1.0
#7 1.481 go: downloading golang.org/x/term v0.20.0
#7 1.530 go: downloading golang.org/x/time v0.5.0
#7 1.590 go: downloading github.com/caddyserver/zerossl v0.1.3
#7 1.591 go: downloading github.com/klauspost/cpuid/v2 v2.2.7
#7 1.592 go: downloading github.com/libdns/libdns v0.2.2
#7 1.592 go: downloading github.com/mholt/acmez/v2 v2.0.1
#7 1.602 go: downloading github.com/miekg/dns v1.1.59
#7 1.615 go: downloading github.com/zeebo/blake3 v0.2.3
#7 1.633 go: downloading golang.org/x/crypto v0.23.0
#7 1.655 go: downloading golang.org/x/net v0.25.0
#7 1.666 go: downloading github.com/beorn7/perks v1.0.1
#7 2.051 go: downloading github.com/prometheus/client_model v0.5.0
#7 2.051 go: downloading github.com/prometheus/common v0.48.0
#7 2.053 go: downloading google.golang.org/protobuf v1.34.1
#7 2.055 go: downloading github.com/prometheus/procfs v0.12.0
#7 2.058 go: downloading go.uber.org/multierr v1.11.0
#7 2.078 go: downloading github.com/onsi/ginkgo/v2 v2.13.2
#7 2.084 go: downloading go.uber.org/mock v0.4.0
#7 2.813 go: downloading golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
#7 2.835 go: downloading github.com/quic-go/qpack v0.4.0
#7 2.871 go: downloading golang.org/x/tools v0.21.0
#7 2.966 go: downloading golang.org/x/text v0.15.0
#7 3.041 go: downloading golang.org/x/mod v0.17.0
#7 3.055 go: downloading github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
#7 3.065 go: downloading github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
#7 5.567 go: downloading golang.org/x/sync v0.7.0
#7 7.074 go: added github.com/beorn7/perks v1.0.1
#7 7.074 go: added github.com/caddyserver/caddy/v2 v2.8.0-rc.1
#7 7.074 go: added github.com/caddyserver/certmagic v0.21.2
#7 7.074 go: added github.com/caddyserver/zerossl v0.1.3
#7 7.074 go: added github.com/cespare/xxhash/v2 v2.2.0
#7 7.074 go: added github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
#7 7.074 go: added github.com/google/pprof v0.0.0-20231212022811-ec68065c825e
#7 7.074 go: added github.com/google/uuid v1.6.0
#7 7.074 go: added github.com/klauspost/cpuid/v2 v2.2.7
#7 7.074 go: added github.com/libdns/libdns v0.2.2
#7 7.074 go: added github.com/mholt/acmez/v2 v2.0.1
#7 7.074 go: added github.com/miekg/dns v1.1.59
#7 7.074 go: added github.com/onsi/ginkgo/v2 v2.13.2
#7 7.074 go: added github.com/prometheus/client_golang v1.19.1
#7 7.074 go: added github.com/prometheus/client_model v0.5.0
#7 7.074 go: added github.com/prometheus/common v0.48.0
#7 7.074 go: added github.com/prometheus/procfs v0.12.0
#7 7.074 go: added github.com/quic-go/qpack v0.4.0
#7 7.074 go: added github.com/quic-go/quic-go v0.44.0
#7 7.074 go: added github.com/zeebo/blake3 v0.2.3
#7 7.074 go: added go.uber.org/mock v0.4.0
#7 7.074 go: added go.uber.org/multierr v1.11.0
#7 7.074 go: added go.uber.org/zap v1.27.0
#7 7.074 go: added go.uber.org/zap/exp v0.2.0
#7 7.074 go: added golang.org/x/crypto v0.23.0
#7 7.074 go: added golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
#7 7.074 go: added golang.org/x/mod v0.17.0
#7 7.074 go: added golang.org/x/net v0.25.0
#7 7.074 go: added golang.org/x/sync v0.7.0
#7 7.074 go: added golang.org/x/sys v0.20.0
#7 7.074 go: added golang.org/x/term v0.20.0
#7 7.074 go: added golang.org/x/text v0.15.0
#7 7.074 go: added golang.org/x/time v0.5.0
#7 7.074 go: added golang.org/x/tools v0.21.0
#7 7.074 go: added google.golang.org/protobuf v1.34.1
#7 7.081 2024/05/26 13:21:04 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v github.com/caddy-dns/infomaniak github.com/caddyserver/caddy/v2@v2.8.0-rc.1
#7 7.585 go: downloading github.com/caddy-dns/infomaniak v0.0.0-20230513140205-4a7f7025ddf0
#7 7.637 go: downloading github.com/libdns/infomaniak v0.1.2
#7 7.909 go: added github.com/caddy-dns/infomaniak v0.0.0-20230513140205-4a7f7025ddf0
#7 7.909 go: added github.com/libdns/infomaniak v0.1.2
#7 7.913 2024/05/26 13:21:05 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v
#7 7.929 go: downloading github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b
#7 7.930 go: downloading github.com/spf13/cobra v1.8.0
#7 7.931 go: downloading github.com/spf13/pflag v1.0.5
#7 7.932 go: downloading github.com/go-chi/chi/v5 v5.0.12
#7 7.934 go: downloading go.uber.org/automaxprocs v1.5.3
#7 7.934 go: downloading github.com/smallstep/certificates v0.26.1
#7 7.934 go: downloading github.com/dustin/go-humanize v1.0.1
#7 7.936 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20240507223354-67b13616a595
#7 8.415 go: downloading github.com/smallstep/truststore v0.13.0
#7 8.431 go: downloading go.step.sm/crypto v0.45.0
#7 8.432 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
#7 8.433 go: downloading github.com/smallstep/nosql v0.6.1
#7 8.485 go: downloading github.com/tailscale/tscert v0.0.0-20240517230440-bbccfbf48933
#7 8.618 go: downloading github.com/google/cel-go v0.20.1
#7 8.755 go: downloading github.com/klauspost/compress v1.17.8
#7 8.903 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.3
#7 8.903 go: downloading github.com/inconshreveable/mousetrap v1.1.0
#7 8.903 go: downloading gopkg.in/yaml.v3 v3.0.1
#7 8.903 go: downloading howett.net/plist v1.0.0
#7 8.904 go: downloading github.com/pires/go-proxyproto v0.7.0
#7 8.904 go: downloading github.com/pkg/errors v0.9.1
#7 8.908 go: downloading github.com/BurntSushi/toml v1.3.2
#7 8.908 go: downloading github.com/Masterminds/sprig/v3 v3.2.3
#7 8.909 go: downloading github.com/alecthomas/chroma/v2 v2.13.0
#7 8.910 go: downloading github.com/yuin/goldmark v1.7.1
#7 9.154 go: downloading github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
#7 9.155 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
#7 9.155 go: downloading go.opentelemetry.io/contrib/propagators/autoprop v0.42.0
#7 9.158 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
#7 9.209 go: downloading go.opentelemetry.io/otel/sdk v1.21.0
#7 9.209 go: downloading go.opentelemetry.io/otel v1.24.0
#7 9.272 go: downloading go.opentelemetry.io/otel/trace v1.24.0
#7 9.279 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0
#7 9.372 go: downloading github.com/fxamacker/cbor/v2 v2.6.0
#7 9.532 go: downloading github.com/google/go-tpm v0.9.0
#7 9.571 go: downloading github.com/smallstep/go-attestation v0.4.4-0.20240109183208-413678f90935
#7 9.579 go: downloading go.step.sm/linkedca v0.20.1
#7 9.713 go: downloading google.golang.org/grpc v1.63.2
#7 9.713 go: downloading go.step.sm/cli-utils v0.9.0
#7 9.713 go: downloading github.com/slackhq/nebula v1.6.1
#7 9.772 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20240506185236-b8a5c65736ae
#7 9.870 go: downloading github.com/stoewer/go-strcase v1.2.0
#7 10.29 go: downloading github.com/antlr4-go/antlr/v4 v4.13.0
#7 10.30 go: downloading github.com/dgraph-io/badger v1.6.2
#7 10.72 go: downloading github.com/dgraph-io/badger/v2 v2.2007.4
#7 10.76 go: downloading go.etcd.io/bbolt v1.3.9
#7 10.94 go: downloading github.com/go-sql-driver/mysql v1.7.1

#7 10.94 go: downloading github.com/jackc/pgx/v4 v4.18.3
#7 10.95 go: downloading github.com/russross/blackfriday/v2 v2.1.0
#7 11.13 go: downloading github.com/Masterminds/semver/v3 v3.2.0
#7 11.13 go: downloading github.com/huandu/xstrings v1.3.3
#7 11.13 go: downloading github.com/imdario/mergo v0.3.12
#7 11.13 go: downloading github.com/mitchellh/copystructure v1.2.0
#7 11.13 go: downloading github.com/shopspring/decimal v1.2.0
#7 11.13 go: downloading github.com/Masterminds/goutils v1.1.1
#7 11.24 go: downloading github.com/spf13/cast v1.4.1
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/aws v1.17.0
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/b3 v1.17.0
#7 11.25 go: downloading go.opentelemetry.io/contrib/propagators/jaeger v1.17.0
#7 11.30 go: downloading go.opentelemetry.io/contrib/propagators/ot v1.17.0
#7 11.30 go: downloading github.com/felixge/httpsnoop v1.0.4
#7 11.30 go: downloading go.opentelemetry.io/otel/metric v1.24.0
#7 11.32 go: downloading github.com/go-jose/go-jose/v3 v3.0.3
#7 11.43 go: downloading github.com/sirupsen/logrus v1.9.3
#7 11.43 go: downloading github.com/smallstep/pkcs7 v0.0.0-20231024181729-3b98ecc1ca81
#7 11.43 go: downloading github.com/smallstep/scep v0.0.0-20231024192529-aee96d7ad34d
#7 11.48 go: downloading go.opentelemetry.io/proto/otlp v1.0.0
#7 11.61 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240429193739-8cf5692501f6
#7 11.76 go: downloading github.com/rs/xid v1.5.0
#7 11.76 go: downloading filippo.io/edwards25519 v1.1.0
#7 11.78 go: downloading github.com/Microsoft/go-winio v0.6.0
#7 11.78 go: downloading github.com/mitchellh/go-ps v1.0.0
#7 11.78 go: downloading github.com/google/go-tspi v0.3.0
#7 11.78 go: downloading github.com/x448/float16 v0.8.4
#7 12.12 go: downloading github.com/urfave/cli v1.22.14
#7 12.12 go: downloading github.com/manifoldco/promptui v0.9.0
#7 12.12 go: downloading github.com/chzyer/readline v1.5.1
#7 12.12 go: downloading github.com/dgraph-io/ristretto v0.1.0
#7 12.12 go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
#7 12.12 go: downloading github.com/golang/protobuf v1.5.4
#7 12.12 go: downloading github.com/jackc/pgconn v1.14.3
#7 12.27 go: downloading github.com/jackc/pgio v1.0.0
#7 12.59 go: downloading github.com/jackc/pgproto3/v2 v2.3.3
#7 12.64 go: downloading github.com/jackc/pgtype v1.14.0
#7 12.64 go: downloading github.com/mitchellh/reflectwalk v1.0.2
#7 12.64 go: downloading github.com/go-logr/logr v1.4.1
#7 12.64 go: downloading github.com/dlclark/regexp2 v1.11.0
#7 12.64 go: downloading github.com/go-logr/stdr v1.2.2
#7 12.64 go: downloading github.com/cenkalti/backoff/v4 v4.2.1
#7 12.68 go: downloading github.com/go-kit/kit v0.13.0
#7 12.69 go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0
#7 13.13 go: downloading github.com/google/certificate-transparency-go v1.1.8-0.20240110162603-74a5dd331745
#7 13.15 go: downloading github.com/golang/snappy v0.0.4
#7 13.15 go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
#7 13.38 go: downloading github.com/jackc/chunkreader/v2 v2.0.1
#7 13.49 go: downloading github.com/jackc/pgpassfile v1.0.0
#7 13.49 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
#7 13.49 go: downloading github.com/golang/glog v1.2.0
#7 13.49 go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
#7 13.49 go: downloading github.com/go-kit/log v0.2.1
#7 14.05 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
#7 14.21 go: downloading github.com/mattn/go-colorable v0.1.13
#7 14.22 go: downloading github.com/go-logfmt/logfmt v0.6.0
#7 14.31 go: downloading github.com/mattn/go-isatty v0.0.20
#7 20.05 2024/05/26 13:21:17 [INFO] Build environment ready
#7 20.05 2024/05/26 13:21:17 [INFO] Building Caddy
#7 20.05 2024/05/26 13:21:17 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -e
#7 20.09 go: downloading go.uber.org/goleak v1.3.0
#7 20.09 go: downloading github.com/onsi/gomega v1.29.0
#7 20.09 go: downloading github.com/stretchr/testify v1.9.0
#7 20.09 go: downloading github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262
#7 20.09 go: downloading github.com/google/go-cmp v0.6.0
#7 20.10 go: downloading github.com/zeebo/assert v1.1.0
#7 20.10 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
#7 20.10 go: downloading github.com/prashantv/gostub v1.1.0
#7 20.45 go: downloading github.com/davecgh/go-spew v1.1.1
#7 20.85 go: downloading github.com/alecthomas/assert/v2 v2.6.0
#7 20.96 go: downloading github.com/google/go-tpm-tools v0.4.4
#7 20.97 go: downloading github.com/peterbourgon/diskv/v3 v3.0.1
#7 20.98 go: downloading github.com/schollz/jsonstore v1.1.0
#7 21.32 go: downloading gopkg.in/yaml.v2 v2.4.0
#7 21.32 go: downloading github.com/alecthomas/repr v0.4.0
#7 21.32 go: downloading github.com/chzyer/test v1.0.0
#7 21.32 go: downloading github.com/aws/aws-sdk-go-v2/config v1.27.13
#7 21.32 go: downloading cloud.google.com/go/kms v1.16.0
#7 21.32 go: downloading github.com/aws/aws-sdk-go-v2/service/kms v1.31.1
#7 21.32 go: downloading google.golang.org/api v0.180.0
#7 21.32 go: downloading github.com/kr/pretty v0.3.1
#7 21.33 go: downloading github.com/googleapis/gax-go/v2 v2.12.4
#7 21.61 go: downloading github.com/cockroachdb/apd v1.1.0
#7 21.63 go: downloading github.com/gofrs/uuid v4.0.0+incompatible
#7 21.69 go: downloading cloud.google.com/go v0.112.1
#7 21.69 go: downloading github.com/pmezard/go-difflib v1.0.0
#7 21.70 go: downloading github.com/google/btree v1.1.2
#7 21.72 go: downloading github.com/hexops/gotextdiff v1.0.3
#7 21.75 go: downloading github.com/aws/aws-sdk-go-v2 v1.26.1
#7 21.77 go: downloading github.com/zeebo/pcg v1.0.1
#7 21.78 go: downloading github.com/chzyer/logex v1.2.1
#7 21.78 go: downloading github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65
#7 21.85 go: downloading github.com/lib/pq v1.10.9
#7 21.85 go: downloading github.com/kr/text v0.2.0
#7 21.85 go: downloading github.com/rogpeppe/go-internal v1.10.0
#7 21.89 go: downloading github.com/OneOfOne/xxhash v1.2.2
#7 22.00 go: downloading github.com/spaolacci/murmur3 v1.1.0
#7 22.15 go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5
#7 22.15 go: downloading cloud.google.com/go/iam v1.1.8
#7 22.15 go: downloading github.com/aws/smithy-go v1.20.2
#7 22.15 go: downloading cloud.google.com/go/longrunning v0.5.7
#7 22.44 go: downloading google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda
#7 22.44 go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.17.13
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.20.6
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.0
#7 23.59 go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.28.7
#7 23.93 go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5
#7 23.96 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2
#7 23.96 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7
#7 30.27 go: downloading cloud.google.com/go/auth v0.4.1
#7 30.27 go: downloading golang.org/x/oauth2 v0.20.0
#7 30.27 go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0
#7 30.27 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.2
#7 30.27 go: downloading github.com/google/s2a-go v0.1.7
#7 30.27 go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.2
#7 30.27 go: downloading go.opencensus.io v0.24.0
#7 30.27 go: downloading cloud.google.com/go/compute/metadata v0.3.0
#7 30.40 go: downloading cloud.google.com/go/compute v1.24.0
#7 30.66 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
#7 31.10 2024/05/26 13:21:28 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger
#7 41.47 # github.com/libdns/infomaniak
#7 41.47 /go/pkg/mod/github.com/libdns/infomaniak@v0.1.2/mappers.go:23:13: cannot use int(ikr.Priority) (value of type int) as uint value in struct literal
#7 47.79 2024/05/26 13:21:45 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2024-05-26-1320.3473250249
#7 47.79 2024/05/26 13:21:45 [FATAL] exit status 1
#7 ERROR: process "/bin/sh -c xcaddy build     --with github.com/caddy-dns/infomaniak" did not complete successfully: exit code: 1
------
 > [builder 2/2] RUN xcaddy build     --with github.com/caddy-dns/infomaniak:
30.27 go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.2
30.27 go: downloading go.opencensus.io v0.24.0
30.27 go: downloading cloud.google.com/go/compute/metadata v0.3.0
30.40 go: downloading cloud.google.com/go/compute v1.24.0
30.66 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
31.10 2024/05/26 13:21:28 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger
41.47 # github.com/libdns/infomaniak
41.47 /go/pkg/mod/github.com/libdns/infomaniak@v0.1.2/mappers.go:23:13: cannot use int(ikr.Priority) (value of type int) as uint value in struct literal
47.79 2024/05/26 13:21:45 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2024-05-26-1320.3473250249
47.79 2024/05/26 13:21:45 [FATAL] exit status 1
------
Dockerfile:10
--------------------
   9 |
  10 | >>> RUN xcaddy build \
  11 | >>>     --with github.com/caddy-dns/infomaniak
  12 |
--------------------
ERROR: failed to solve: process "/bin/sh -c xcaddy build     --with github.com/caddy-dns/infomaniak" did not complete successfully: exit code: 1 in /usr/share/openmediavault/engined/rpc/compose.inc:702
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMVRpcServiceCompose->{closure}()
#1 /usr/share/openmediavault/engined/rpc/compose.inc(686): OMV\Rpc\ServiceAbstract->execBgProc()
#2 [internal function]: OMVRpcServiceCompose->doBuild()
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
#6 {main}
jangzn commented 3 months ago

Hi,

Thanks for reporting this.

Based on the error message it looks like the issue is in the libdns/infomaniak repo.

I assume that the caddy 2.8 container is using a newer golang version and that the code is not compliant with that newer version.

I'll try to reproduce and look into it once I find the time.

EDIT: Cause for the compile issue is this commit in libdns/libdns which has been released on March 21, 2024 in v0.2.2.

nurunet commented 3 months ago

I confirm it seems to work now. Thank you!