Files
JakeHillion caf0254ae6
flake / flake (push) Successful in 3m49s
commit-validation / validate-single-commit (pull_request) Successful in 4s
nix-builder (x86_64-linux) Build completed successfully
nix-builder (aarch64-linux) Build completed successfully
caddy-with-dns: replace fixed-output hash with checked-in Go module
The caddy-with-dns package used a fixed-output derivation with an
outputHash that bundled xcaddy source generation and go mod vendor into
a single content-addressed blob. This hash broke whenever nixpkgs
updated the caddy version, plugin versions changed, or any transitive
dependency shifted, causing CI lockfile update jobs to fail.

Replaced the xcaddy-based build with a standard Go module structure
using buildGoModule. The source files (main.go, go.mod, go.sum) are
checked in and the caddy version is pinned in go.mod rather than
inherited from nixpkgs, decoupling from flake.lock updates. The
package version is extracted from go.mod at eval time to avoid
maintaining it separately. Removed the separate caddy-specific CI
build step that existed only to catch stale hashes. Added a Renovate
post-upgrade task to recompute the vendorHash after Go dependency
updates, and added gawk and gnused to the Renovate service path so
the post-upgrade sed and awk commands work.

Test plan:
- Built caddy-with-dns, verified binary version (v2.10.2) and both
  dns.providers.cloudflare and dns.providers.jakehillion modules
- CI
2026-03-13 13:05:41 +00:00

43 lines
1.5 KiB
AMPL

module github.com/jakehillion/caddy-dns-jakehillion
go 1.25
require (
github.com/caddyserver/caddy/v2 v2.10.2
github.com/libdns/libdns v1.1.1
)
require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/caddyserver/certmagic v0.24.0 // indirect
github.com/caddyserver/zerossl v0.1.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/mholt/acmez/v3 v3.1.2 // indirect
github.com/miekg/dns v1.1.63 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/prometheus/client_golang v1.23.0 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.65.0 // indirect
github.com/prometheus/procfs v0.16.1 // indirect
github.com/quic-go/qpack v0.5.1 // indirect
github.com/quic-go/quic-go v0.54.0 // indirect
github.com/zeebo/blake3 v0.2.4 // indirect
go.uber.org/mock v0.5.2 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go.uber.org/zap/exp v0.3.0 // indirect
golang.org/x/crypto v0.40.0 // indirect
golang.org/x/mod v0.25.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/sys v0.34.0 // indirect
golang.org/x/term v0.33.0 // indirect
golang.org/x/text v0.27.0 // indirect
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.34.0 // indirect
google.golang.org/protobuf v1.36.6 // indirect
)