caddy-dns / desec

deSEC module for Caddy
MIT License
19 stars 3 forks source link

Update desec/libdns dependency to v0.2.4 #7

Closed Monviech closed 6 months ago

Monviech commented 6 months ago

https://github.com/libdns/desec/commit/a279f344b3a94dba7ef810dff5e3db31667957ad

Build is successful:

root@freebsd-build:/src/git/caddy # xcaddy build --with github.com/caddy-dns/desec=github.com/Monviech/caddy-dns-desec@f8ee74a93876bcf8dcf5fde1d53b3f0416ace1bd
2024/05/26 08:31:46 [INFO] absolute output file path: /src/git/caddy/caddy
2024/05/26 08:31:46 [INFO] Temporary folder: /tmp/buildenv_2024-05-26-0831.3710955026
2024/05/26 08:31:46 [INFO] Writing main module: /tmp/buildenv_2024-05-26-0831.3710955026/main.go
package main

import (
        caddycmd "github.com/caddyserver/caddy/v2/cmd"

        // plug in Caddy modules here
        _ "github.com/caddyserver/caddy/v2/modules/standard"
        _ "github.com/caddy-dns/desec"
)

func main() {
        caddycmd.Main()
}
2024/05/26 08:31:46 [INFO] Initializing Go module
2024/05/26 08:31:46 [INFO] exec (timeout=0s): /usr/local/go122/bin/go mod init caddy 
go: creating new go.mod: module caddy
go: to add module requirements and sums:
        go mod tidy
2024/05/26 08:31:46 [INFO] Replace github.com/caddy-dns/desec => github.com/Monviech/caddy-dns-desec@f8ee74a93876bcf8dcf5fde1d53b3f0416ace1bd
2024/05/26 08:31:46 [INFO] exec (timeout=0s): /usr/local/go122/bin/go mod edit -replace github.com/caddy-dns/desec=github.com/Monviech/caddy-dns-desec@f8ee74a93876bcf8dcf5fde1d53b3f0416ace1bd 
2024/05/26 08:31:46 [INFO] Pinning versions
2024/05/26 08:31:46 [INFO] exec (timeout=0s): /usr/local/go122/bin/go get -d -v github.com/caddyserver/caddy/v2 
go: added github.com/beorn7/perks v1.0.1
go: added github.com/caddyserver/caddy/v2 v2.7.6
go: added github.com/caddyserver/certmagic v0.20.0
go: added github.com/cespare/xxhash/v2 v2.2.0
go: added github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
go: added github.com/golang/protobuf v1.5.3
go: added github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1
go: added github.com/google/uuid v1.3.1
go: added github.com/klauspost/cpuid/v2 v2.2.5
go: added github.com/libdns/libdns v0.2.1
go: added github.com/matttproud/golang_protobuf_extensions v1.0.4
go: added github.com/mholt/acmez v1.2.0
go: added github.com/miekg/dns v1.1.55
go: added github.com/onsi/ginkgo/v2 v2.9.5
go: added github.com/prometheus/client_golang v1.15.1
go: added github.com/prometheus/client_model v0.4.0
go: added github.com/prometheus/common v0.42.0
go: added github.com/prometheus/procfs v0.9.0
go: added github.com/quic-go/qpack v0.4.0
go: added github.com/quic-go/qtls-go1-20 v0.4.1
go: added github.com/quic-go/quic-go v0.40.0
go: added github.com/zeebo/blake3 v0.2.3
go: added go.uber.org/mock v0.3.0
go: added go.uber.org/multierr v1.11.0
go: added go.uber.org/zap v1.25.0
go: added golang.org/x/crypto v0.14.0
go: added golang.org/x/exp v0.0.0-20230310171629-522b1b587ee0
go: added golang.org/x/mod v0.11.0
go: added golang.org/x/net v0.17.0
go: added golang.org/x/sys v0.14.0
go: added golang.org/x/term v0.13.0
go: added golang.org/x/text v0.13.0
go: added golang.org/x/tools v0.10.0
go: added google.golang.org/protobuf v1.31.0
2024/05/26 08:31:47 [INFO] exec (timeout=0s): /usr/local/go122/bin/go get -d -v  
go: trying upgrade to github.com/caddy-dns/desec@v0.0.0-20230823122717-e1e64971fe34
go: accepting indirect upgrade from github.com/google/pprof@v0.0.0-20210720184732-4bb14d4b1be1 to v0.0.0-20230821062121-407c9e7a662f
go: accepting indirect upgrade from github.com/libdns/libdns@v0.2.1 to v0.2.2
go: accepting indirect upgrade from github.com/onsi/ginkgo/v2@v2.9.5 to v2.11.0
go: accepting indirect upgrade from github.com/prometheus/client_golang@v1.15.1 to v1.16.0
go: accepting indirect upgrade from github.com/prometheus/common@v0.42.0 to v0.44.0
go: accepting indirect upgrade from github.com/prometheus/procfs@v0.9.0 to v0.11.1
go: accepting indirect upgrade from golang.org/x/crypto@v0.14.0 to v0.23.0
go: accepting indirect upgrade from golang.org/x/exp@v0.0.0-20230310171629-522b1b587ee0 to v0.0.0-20240506185415-9bf2ced13842
go: accepting indirect upgrade from golang.org/x/mod@v0.11.0 to v0.17.0
go: accepting indirect upgrade from golang.org/x/net@v0.17.0 to v0.25.0
go: accepting indirect upgrade from golang.org/x/sync@v0.4.0 to v0.7.0
go: accepting indirect upgrade from golang.org/x/sys@v0.14.0 to v0.20.0
go: accepting indirect upgrade from golang.org/x/term@v0.13.0 to v0.20.0
go: accepting indirect upgrade from golang.org/x/text@v0.13.0 to v0.15.0
go: accepting indirect upgrade from golang.org/x/tools@v0.10.0 to v0.21.0
go: added github.com/caddy-dns/desec v0.0.0-20230823122717-e1e64971fe34
go: upgraded github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 => v0.0.0-20230821062121-407c9e7a662f
go: added github.com/libdns/desec v0.2.4
go: upgraded github.com/libdns/libdns v0.2.1 => v0.2.2
go: upgraded github.com/onsi/ginkgo/v2 v2.9.5 => v2.11.0
go: upgraded github.com/prometheus/client_golang v1.15.1 => v1.16.0
go: upgraded github.com/prometheus/common v0.42.0 => v0.44.0
go: upgraded github.com/prometheus/procfs v0.9.0 => v0.11.1
go: upgraded golang.org/x/crypto v0.14.0 => v0.23.0
go: upgraded golang.org/x/exp v0.0.0-20230310171629-522b1b587ee0 => v0.0.0-20240506185415-9bf2ced13842
go: upgraded golang.org/x/mod v0.11.0 => v0.17.0
go: upgraded golang.org/x/net v0.17.0 => v0.25.0
go: upgraded golang.org/x/sync v0.4.0 => v0.7.0
go: upgraded golang.org/x/sys v0.14.0 => v0.20.0
go: upgraded golang.org/x/term v0.13.0 => v0.20.0
go: upgraded golang.org/x/text v0.13.0 => v0.15.0
go: upgraded golang.org/x/tools v0.10.0 => v0.21.0
2024/05/26 08:31:48 [INFO] Build environment ready
2024/05/26 08:31:48 [INFO] Building Caddy
2024/05/26 08:31:48 [INFO] exec (timeout=0s): /usr/local/go122/bin/go mod tidy -e 
2024/05/26 08:31:48 [INFO] exec (timeout=0s): /usr/local/go122/bin/go build -o /src/git/caddy/caddy -ldflags -w -s -trimpath -tags nobadger 
2024/05/26 08:31:49 [INFO] Build complete: ./caddy
2024/05/26 08:31:49 [INFO] Cleaning up temporary folder: /tmp/buildenv_2024-05-26-0831.3710955026
znkr commented 6 months ago

I didn't update caddy-dns/desec yet, because I am not sure what happens when you try to build the latest stable version of caddy after updating this package. Thank you for testing that it works! There are probably some combinations of libdns providers that will cease to build due to the incompatible changes in libdns. However, that's probably already the case today or bound to happen anyway and I don't have a better idea for how to roll out this change.

Thank you for the contribution!

Monviech commented 6 months ago

My downstream caddy build for opnsense is built nightly so when there are issues I'll notice them quickly. Thank you for your work on updating the libdns dependency.

Now my issues are resolved. (For now, since the dependency monster can always strike back xD)

Have a nice weekend. ^^